12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
|
|
/// <reference types="vite/client" />
|
||
|
|
|
||
|
|
// 声明你的环境变量,按需添加
|
||
|
|
interface ImportMetaEnv {
|
||
|
|
readonly VITE_BASE_PATH: string
|
||
|
|
// 继续添加你项目里其他 VITE_ 开头变量
|
||
|
|
// readonly VITE_ROUTER_MODE: string
|
||
|
|
}
|
||
|
|
|
||
|
|
interface ImportMeta {
|
||
|
|
readonly env: ImportMetaEnv
|
||
|
|
}
|