2023-06-22 23:46:14 +08:00
|
|
|
/// <reference types="vite/client" />
|
2024-05-22 20:24:16 +08:00
|
|
|
/// <reference types="unplugin-vue-router/client" />
|
2023-06-23 02:20:55 +08:00
|
|
|
|
2024-05-21 23:47:22 +08:00
|
|
|
// 为了确保这个文件被当作一个模块,添加至少一个 `export` 声明
|
2024-05-08 16:33:03 +08:00
|
|
|
export {}
|
2024-05-08 16:07:02 +08:00
|
|
|
|
|
|
|
declare global {
|
|
|
|
export interface Window {
|
2024-08-30 18:19:23 +08:00
|
|
|
webkitAudioContext: typeof AudioContext
|
|
|
|
$message: MessageApiInjection
|
2024-05-08 16:07:02 +08:00
|
|
|
$dialog: DialogApiInjection
|
|
|
|
$loadingbar: LoadingBarInst
|
|
|
|
$notify: NotificationApiInjection
|
2024-05-24 01:49:24 +08:00
|
|
|
$modal: ModalApiInjection
|
2024-05-08 16:07:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 项目版本号 */
|
|
|
|
export const __APP_VERSION__: string
|
2023-06-23 02:20:55 +08:00
|
|
|
}
|
2023-06-27 01:25:45 +08:00
|
|
|
|
|
|
|
interface ImportMetaEnv {
|
2024-03-14 22:20:31 +08:00
|
|
|
readonly BACKEND_URL: string
|
2023-06-27 01:25:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
interface ImportMeta {
|
|
|
|
readonly env: ImportMetaEnv
|
|
|
|
}
|
2023-06-30 08:54:12 +08:00
|
|
|
|
2024-05-08 16:07:02 +08:00
|
|
|
declare module "vue" {
|
|
|
|
export interface ComponentCustomProperties {
|
|
|
|
$geetest: GeetestComponent
|
|
|
|
}
|
2023-07-11 09:42:25 +08:00
|
|
|
}
|
2024-05-08 20:21:21 +08:00
|
|
|
|
2024-05-21 23:47:22 +08:00
|
|
|
declare module "vue-router" {
|
|
|
|
interface RouteMeta {
|
|
|
|
isPlayer?: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-08 20:21:21 +08:00
|
|
|
declare module "default-passive-events" {}
|