17 lines
385 B
TypeScript
17 lines
385 B
TypeScript
/// <reference types="vite/client" />
|
|
interface ViteTypeOptions {
|
|
// By adding this line, you can make the type of ImportMetaEnv strict
|
|
// to disallow unknown keys.
|
|
strictImportMetaEnv: unknown;
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_GATEWAY_URL: string;
|
|
readonly VITE_APP_ID: string;
|
|
// more env variables...
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|