-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv.d.ts
42 lines (34 loc) · 911 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// <reference types="vite/client" />
/// <reference types="unplugin-vue-router/client" />
// 为了确保这个文件被当作一个模块,添加至少一个 `export` 声明
export {}
declare global {
export interface Window {
webkitAudioContext: typeof AudioContext
$message: MessageApiInjection
$dialog: DialogApiInjection
$loadingbar: LoadingBarInst
$notify: NotificationApiInjection
$modal: ModalApiInjection
}
/** 项目版本号 */
export const __APP_VERSION__: string
}
interface ImportMetaEnv {
readonly BACKEND_URL: string
}
// eslint-disable-next-line no-unused-vars
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare module "vue" {
export interface ComponentCustomProperties {
$geetest: GeetestComponent
}
}
declare module "vue-router" {
interface RouteMeta {
isPlayer?: boolean
}
}
declare module "default-passive-events" {}