18 lines
310 B
TypeScript
18 lines
310 B
TypeScript
|
|
/* Ambient env typing for optional Vite-style env access */
|
||
|
|
declare interface ImportMeta {
|
||
|
|
env?: {
|
||
|
|
VITE_API_BASE_URL?: string
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export {}
|
||
|
|
/// <reference types="vite/client" />
|
||
|
|
|
||
|
|
interface ImportMetaEnv {
|
||
|
|
readonly VITE_API_BASE_URL?: string
|
||
|
|
}
|
||
|
|
|
||
|
|
interface ImportMeta {
|
||
|
|
readonly env: ImportMetaEnv
|
||
|
|
}
|