File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ --- node_modules/@types/service-worker-mock/index.d.ts 2021-02-18 13:51:50.000000000 -0700
2
+ +++ patches/service-workertypes.d.ts 2021-02-18 16:30:01.000000000 -0700
3
+ @@ -3,6 +3,11 @@
4
+ // Definitions by: Remco Haszing <https://github.com/remcohaszing>
5
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
+ // TypeScript Version: 2.8
7
+ + // https://gist.github.com/shqld/32df51a4a4ed429f2c76e4e2cfdf6f96#gistcomment-2793376
8
+ + // excludes default libs such as 'dom' conflicting with 'webworker'
9
+ + /// <reference no-default-lib="true"/>
10
+ + /// <reference lib="esnext" />
11
+ + /// <reference lib="webworker" />
12
+
13
+ export = makeServiceWorkerEnv;
14
+ declare function makeServiceWorkerEnv(): WorkerGlobalScope;
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ apply_service_worker_mock_patches() {
10
10
11
11
# This patch adds a missing import
12
12
patch --forward node_modules/service-worker-mock/models/Response.js < patches/service-worker-mock-response.patch
13
+
14
+ # This patch fixes the types declaration file
15
+ # See discussion:
16
+ patch --forward node_modules/@types/service-worker-mock/index.d.ts < patches/service-worker-types.patch
13
17
}
14
18
15
19
main () {
You can’t perform that action at this time.
0 commit comments