29 lines
546 B
TypeScript
29 lines
546 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_AMAP_WEB_JS_KEY?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
interface Window {
|
|
__LINGNIU_APP_CONFIG__?: {
|
|
amapWebJsKey?: string;
|
|
amapSecurityJsCode?: string;
|
|
amapSecurityServiceHost?: string;
|
|
};
|
|
_AMapSecurityConfig?: {
|
|
securityJsCode?: string;
|
|
serviceHost?: string;
|
|
};
|
|
AMapLoader?: {
|
|
load: (options: {
|
|
key: string;
|
|
version: string;
|
|
plugins?: string[];
|
|
}) => Promise<unknown>;
|
|
};
|
|
}
|