KenkoDriveVue/env.d.ts

43 lines
911 B
TypeScript
Raw Permalink Normal View History

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" />
// 为了确保这个文件被当作一个模块,添加至少一个 `export` 声明
2024-05-08 16:33:03 +08:00
export {}
declare global {
export interface Window {
webkitAudioContext: typeof AudioContext
$message: MessageApiInjection
$dialog: DialogApiInjection
$loadingbar: LoadingBarInst
$notify: NotificationApiInjection
$modal: ModalApiInjection
}
/** 项目版本号 */
export const __APP_VERSION__: string
}
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
}
declare module "vue" {
export interface ComponentCustomProperties {
$geetest: GeetestComponent
}
2023-07-11 09:42:25 +08:00
}
declare module "vue-router" {
interface RouteMeta {
isPlayer?: boolean
}
}
declare module "default-passive-events" {}