underbbs/frontend/ts/serviceWorker.ts

18 lines
421 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) => {
2024-05-26 18:50:19 +00:00
console.log("I won't see this");
});
self.addEventListener("install", (e: any) => {
console.log("installation proceeding...")
});
self.addEventListener("activate", (e: any) => {
console.log("SW activated!");
});