From 005453155592d7becfe545b93864bbda62c6f8e1 Mon Sep 17 00:00:00 2001 From: vaiil Date: Wed, 1 Jun 2022 17:14:33 +0300 Subject: [PATCH] Use unknown instead of any in declarations --- docs/frameworks/index.md | 2 +- docs/frameworks/preact.md | 2 +- docs/frameworks/react.md | 2 +- docs/frameworks/solidjs.md | 2 +- docs/frameworks/svelte.md | 2 +- docs/frameworks/vue.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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): {