Files
new-school-iot-admin/types/env.d.ts
T
2026-10-26 18:54:09 +08:00

12 lines
314 B
TypeScript

/** 声明 vite 环境变量的类型(如果未声明则默认是 any) */
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string
readonly VITE_BASE_URL: string
readonly VITE_ROUTER_HISTORY: "hash" | "html5"
readonly VITE_PUBLIC_PATH: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}