Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use unknown instead of any in declarations #295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/frameworks/index.md
Expand Up @@ -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<void>
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/preact.md
Expand Up @@ -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): {
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/react.md
Expand Up @@ -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): {
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/solidjs.md
Expand Up @@ -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): {
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/svelte.md
Expand Up @@ -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): {
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/vue.md
Expand Up @@ -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): {
Expand Down