20 lines
491 B
TypeScript
20 lines
491 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
declare global {
|
|
interface ImportMetaEnv {
|
|
readonly VITE_APPID: string;
|
|
readonly VITE_WEB_URL:string,
|
|
// 更多环境变量...
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly envs: ImportMetaEnv
|
|
}
|
|
}
|