We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76121c8 commit 125dcb0Copy full SHA for 125dcb0
packages/react-scripts/template/src/serviceWorker.d.ts
@@ -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