frequi_origin/src/env.d.ts

15 lines
389 B
TypeScript
Raw Normal View History

2021-05-24 13:25:48 +00:00
/* Provide Type for Vite's import.meta.env structure */
2021-11-14 10:11:52 +00:00
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
2021-05-24 13:25:48 +00:00
interface ImportMeta {
2021-11-14 10:11:52 +00:00
readonly env: ImportMetaEnv;
2021-05-24 13:25:48 +00:00
}
2024-03-10 19:29:40 +00:00
declare const __COMMIT_HASH__: string;