underbbs/ts/serviceWorker.ts

9 lines
No EOL
222 B
TypeScript

/// <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);
});