build: remove worker types from global

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-19 12:00:08 -07:00
parent 545088de1c
commit c57b9ede34
3 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/// <reference path='../../../node_modules/typescript/lib/lib.webworker.d.ts' />
import { CacheExpiration } from 'workbox-expiration'; import { CacheExpiration } from 'workbox-expiration';
import { workerExport } from '../../worker'; import { workerExport } from '../../worker';

View File

@ -1,3 +1,5 @@
/// <reference path='../../../node_modules/typescript/lib/lib.webworker.d.ts' />
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching'; import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching';
import { NetworkFirst, CacheFirst } from 'workbox-strategies'; import { NetworkFirst, CacheFirst } from 'workbox-strategies';
import { registerRoute } from 'workbox-routing'; import { registerRoute } from 'workbox-routing';

View File

@ -2,7 +2,6 @@
"compilerOptions": { "compilerOptions": {
"lib": [ "lib": [
"dom", "dom",
"WebWorker",
"es2017" "es2017"
], ],
"target": "ES2017", "target": "ES2017",