38 lines
909 B
TypeScript
38 lines
909 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_AMAP_WEB_JS_KEY?: string;
|
|
readonly VITE_AMAP_SECURITY_JS_CODE?: string;
|
|
readonly VITE_AMAP_SECURITY_SERVICE_HOST?: string;
|
|
readonly VITE_API_BASE_URL?: string;
|
|
readonly VITE_PROTOTYPE_REAL_DATA?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
interface Window {
|
|
__LINGNIU_APP_CONFIG__?: {
|
|
amapWebJsKey?: string;
|
|
amapSecurityJsCode?: string;
|
|
amapSecurityServiceHost?: string;
|
|
apiBaseUrl?: string;
|
|
prototypeUseRealData?: boolean | string;
|
|
};
|
|
_AMapSecurityConfig?: {
|
|
securityJsCode?: string;
|
|
serviceHost?: string;
|
|
};
|
|
AMapLoader?: {
|
|
load: (options: {
|
|
key: string;
|
|
version: string;
|
|
plugins?: string[];
|
|
}) => Promise<unknown>;
|
|
};
|
|
AMapUI?: {
|
|
loadUI: (modules: string[], callback: (...constructors: unknown[]) => void) => void;
|
|
};
|
|
}
|