Type definitions for JavaScript APIs of AMap in TypeScript
English | 简体中文
npm install amap-js-api-typings
Add the types package to your tsconfig.json file. For example:
{
"compilerOptions": {
"typeRoots" : [
"./node_modules/@types",
"./node_modules/amap-js-api-typings",
"./typings",
]
}
}
Or you could use it with triple-slash directive. For example:
// ./typings/global.d.ts
/// <reference types="amap-js-api-typings" />
Special thanks to the @types/amap-js-api
contributors, especially breeze9527.
PRs accepted.
MIT © Qingrong Ke