Files
zhilu-admin/frontend/env.d.ts
2025-06-15 16:38:39 +08:00

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