22 lines
487 B
TypeScript
22 lines
487 B
TypeScript
|
|
/// <reference types="vite/client" />
|
||
|
|
|
||
|
|
interface ImportMetaEnv {
|
||
|
|
readonly VITE_WREN_API_TOKEN: string;
|
||
|
|
readonly PROD: boolean;
|
||
|
|
readonly DEV: boolean;
|
||
|
|
// Add index signature for dynamic access
|
||
|
|
readonly [key: string]: string | boolean | undefined;
|
||
|
|
}
|
||
|
|
|
||
|
|
interface ImportMeta {
|
||
|
|
readonly env: ImportMetaEnv;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Define the environment variable types for the window.env global
|
||
|
|
interface Window {
|
||
|
|
env?: {
|
||
|
|
[key: string]: string | undefined;
|
||
|
|
WREN_API_TOKEN?: string;
|
||
|
|
};
|
||
|
|
}
|