lolosia-web/typings/env.d.ts

18 lines
413 B
TypeScript
Raw Normal View History

2023-02-02 16:07:38 +08:00
declare global {
interface ImportMetaEnv {
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_MODE: 'local' | 'url' | 'port'
2023-02-02 16:07:38 +08:00
readonly VITE_APP_BASE_URL: string
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_PORT: number
readonly VITE_APP_ENV: 'prod' | 'test' | 'dev'
2023-02-02 16:07:38 +08:00
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
2024-04-02 13:49:56 +08:00
interface Window {
readonly NGINX_BASE_URL: string | undefined
}
2023-02-02 16:07:38 +08:00
}
export {}