puffin-app/src/vite-env.d.ts

22 lines
487 B
TypeScript
Raw Normal View History

2025-05-13 18:50:30 +02:00
/// <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;
};
}