mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-14 05:33:42 +08:00
27 lines
612 B
TypeScript
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;
|
|
}
|