Skip to content

Commit 125dcb0

Browse files
committed
[TypeScript] Add serviceWorker typescript definition
1 parent 76121c8 commit 125dcb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export type Config = {
2+
onSuccess?: (registration: ServiceWorkerRegistration) => void
3+
onUpdate?: (registration: ServiceWorkerRegistration) => void
4+
}
5+
6+
export function register(config: Config): void
7+
8+
export function unregister(): void

0 commit comments

Comments
 (0)