Files
zhilu-admin/frontend/env.d.ts
Chuck1sn 3cd59337e7 init
2025-05-14 10:16:48 +08:00

26 lines
577 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_ENABLE_MOCK: "true" | "false";
readonly VITE_BACKEND_PORT: string;
readonly VITE_BASE_URL: string;
readonly VITE_SOURCE_MAP: "true" | "false";
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
interface AppConfig {
errorHandler?: (
err: unknown,
instance: ComponentPublicInstance | null,
info: string,
) => void;
}