mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-30 16:26:36 +08:00
20 lines
470 B
TypeScript
20 lines
470 B
TypeScript
/// <reference types="vite/client" />
|
|
/// <reference types="vite-plugin-pwa/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_APP_VERSION?: string;
|
|
readonly VITE_GITHUB_REPO?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
declare module "virtual:pwa-register" {
|
|
export function registerSW(options?: {
|
|
immediate?: boolean;
|
|
onNeedRefresh?: () => void;
|
|
onOfflineReady?: () => void;
|
|
}): (reloadPage?: boolean) => Promise<void>;
|
|
}
|