-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv.d.ts
26 lines (22 loc) · 906 Bytes
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const component: DefineComponent<object, object, any>;
export default component;
}
declare module 'virtual:pwa-register/vue' {
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-expect-error ignore when vue is not installed
import type { Ref } from 'vue';
import type { RegisterSWOptions } from 'vite-plugin-pwa/types';
export type { RegisterSWOptions };
// eslint-disable-next-line no-unused-vars
export function useRegisterSW(options?: RegisterSWOptions): {
needRefresh: Ref<boolean>;
offlineReady: Ref<boolean>;
// eslint-disable-next-line no-unused-vars
updateServiceWorker: (reloadPage?: boolean) => Promise<void>;
};
}
declare module 'markdown-it-task-lists';