26 lines
647 B
TypeScript
26 lines
647 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_WREN_API_TOKEN: string;
|
|
readonly VITE_FORMSPREE_CONTACT_ID: string;
|
|
readonly VITE_FORMSPREE_OFFSET_ID: 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;
|
|
FORMSPREE_CONTACT_ID?: string;
|
|
FORMSPREE_OFFSET_ID?: string;
|
|
};
|
|
}
|