ts/serviceWorker.ts (raw)
1 2 3 4 5 6 7 8 9 |
/// <reference lib="WebWorker" /> // export empty type because of tsc --isolatedModules flag export type {}; declare const self: ServiceWorkerGlobalScope; self.addEventListener('sync', (e: any) => { console.log(e); }); |