mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-01 09:03:43 +08:00
init
This commit is contained in:
25
frontend/env.d.ts
vendored
Normal file
25
frontend/env.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/// <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;
|
||||
}
|
||||
Reference in New Issue
Block a user