underbbs/ts/serviceWorker.ts

9 lines
222 B
TypeScript
Raw Normal View History

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