diff --git a/docs/frameworks/index.md b/docs/frameworks/index.md index f177437a..ee03259d 100644 --- a/docs/frameworks/index.md +++ b/docs/frameworks/index.md @@ -15,7 +15,7 @@ declare module 'virtual:pwa-register' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function registerSW(options?: RegisterSWOptions): (reloadPage?: boolean) => Promise diff --git a/docs/frameworks/preact.md b/docs/frameworks/preact.md index edfc2821..e900846d 100644 --- a/docs/frameworks/preact.md +++ b/docs/frameworks/preact.md @@ -21,7 +21,7 @@ declare module 'virtual:pwa-register/preact' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function useRegisterSW(options?: RegisterSWOptions): { diff --git a/docs/frameworks/react.md b/docs/frameworks/react.md index 12104f33..b6a441d7 100644 --- a/docs/frameworks/react.md +++ b/docs/frameworks/react.md @@ -21,7 +21,7 @@ declare module 'virtual:pwa-register/react' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function useRegisterSW(options?: RegisterSWOptions): { diff --git a/docs/frameworks/solidjs.md b/docs/frameworks/solidjs.md index caf51277..bcf0daf9 100644 --- a/docs/frameworks/solidjs.md +++ b/docs/frameworks/solidjs.md @@ -21,7 +21,7 @@ declare module 'virtual:pwa-register/solid' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function useRegisterSW(options?: RegisterSWOptions): { diff --git a/docs/frameworks/svelte.md b/docs/frameworks/svelte.md index 2b3a452e..57e9daac 100644 --- a/docs/frameworks/svelte.md +++ b/docs/frameworks/svelte.md @@ -21,7 +21,7 @@ declare module 'virtual:pwa-register/svelte' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function useRegisterSW(options?: RegisterSWOptions): { diff --git a/docs/frameworks/vue.md b/docs/frameworks/vue.md index 142ea13b..397264b7 100644 --- a/docs/frameworks/vue.md +++ b/docs/frameworks/vue.md @@ -21,7 +21,7 @@ declare module 'virtual:pwa-register/vue' { onNeedRefresh?: () => void onOfflineReady?: () => void onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void + onRegisterError?: (error: unknown) => void } export function useRegisterSW(options?: RegisterSWOptions): {