18 lines
337 B
TypeScript
18 lines
337 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
type ImportMetaEnv = {
|
|
readonly VITE_API_URL: string;
|
|
readonly MOCKS: boolean;
|
|
// more env variables...
|
|
} & {
|
|
readonly [key: `VITE_${string}`]: string | undefined;
|
|
};
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
interface CustomWindow extends Window {
|
|
__MOCKS__?: boolean;
|
|
}
|