Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keqingrong/amap-js-api-typings
Type definitions for JavaScript APIs of AMap in TypeScript
https://github.com/keqingrong/amap-js-api-typings
amap amap-api amap-js amap-js-api amap-sdk react-amap vue-amap
Last synced: about 6 hours ago
JSON representation
Type definitions for JavaScript APIs of AMap in TypeScript
- Host: GitHub
- URL: https://github.com/keqingrong/amap-js-api-typings
- Owner: keqingrong
- License: mit
- Created: 2019-08-10T12:34:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T14:55:51.000Z (over 3 years ago)
- Last Synced: 2024-10-11T19:09:58.089Z (about 1 month ago)
- Topics: amap, amap-api, amap-js, amap-js-api, amap-sdk, react-amap, vue-amap
- Language: TypeScript
- Homepage: https://lbs.amap.com/api/javascript-api/summary
- Size: 48.8 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README-zh-hans.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 高德地图类型定义文件
[![npm version](https://img.shields.io/npm/v/amap-js-api-typings.svg)](https://www.npmjs.com/package/amap-js-api-typings)
[高德地图 JavaScript API](https://lbs.amap.com/api/javascript-api/summary) 的 TypeScript 类型定义文件
[English](./README.md) | 简体中文
## 安装
```sh
npm install amap-js-api-typings
```## 用法
你可以将该类型定义文件加到项目的 [tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types) 编译配置中。例如:
```json
{
"compilerOptions": {
"typeRoots" : [
"./node_modules/@types",
"./node_modules/amap-js-api-typings",
"./typings",
]
}
}
```或者搭配 [三斜线指令](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) 使用。例如:
```ts
// ./typings/global.d.ts
///
```## 鸣谢
感谢 `@types/amap-js-api` 等包的贡献者,尤其是 [breeze9527](https://github.com/breeze9527)。
## 贡献
欢迎提交 PR。
## 许可证
MIT © Qingrong Ke