fix: add types for env variables

This commit is contained in:
Ilia Mashkov
2026-02-12 10:31:23 +03:00
parent 3423eebf77
commit cdb2c355c0

View File

@@ -35,3 +35,16 @@ declare module '*.jpg' {
const content: string; const content: string;
export default content; export default content;
} }
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly DEV: boolean;
readonly PROD: boolean;
readonly MODE: string;
// Add other env variables you use
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}