frequi_origin/src/env.d.ts
2022-02-05 19:34:56 +01:00

13 lines
349 B
TypeScript

/* Provide Type for Vite's import.meta.env structure */
interface ImportMetaEnv extends Readonly<Record<string, string>> {
readonly BASE_URL: string;
readonly MODE: string;
readonly PROD: boolean;
readonly DEV: boolean;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface ImportMeta {
readonly env: ImportMetaEnv;
}