chore: pwa update prompt

This commit is contained in:
鲁树人
2023-10-11 23:06:09 +01:00
parent 1566c0ffcb
commit 022c9d1eac
3 changed files with 20 additions and 1 deletions

8
src/vite-env.d.ts vendored
View File

@@ -1 +1,9 @@
/// <reference types="vite/client" />
module 'virtual:pwa-register' {
/**
* See: {@link https://vite-pwa-org.netlify.app/guide/prompt-for-update.html}
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
declare function registerSW(opts: unknown): () => void;
}