@amap/amap-loca-types 是高德Loca 2.0 的typings文件。
npm i -S @amap/amap-loca-types
{
"compilerOptions": {
"types": ["@amap/amap-loca-types"]
}
}
{
"files": ["node_modules/@amap/amap-jsapi-types/index.d.ts", "node_modules/@amap/amap-loca-types/index.d.ts"]
}
/// <reference types="@amap/amap-loca-types" />