Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问能否增加typescript支持?? #47

Closed
margox opened this issue Oct 11, 2017 · 3 comments
Closed

请问能否增加typescript支持?? #47

margox opened this issue Oct 11, 2017 · 3 comments

Comments

@margox
Copy link

margox commented Oct 11, 2017

在基于typescript的项目中使用react-amap,会提示找不到模块的声明文件,可能需要一个d.ts文件

error TS7016: Could not find a declaration file for module 'react-amap'. 'xxxnode_modules/react-amap/lib/index.js' implicitly has an 'any' type.
  Try `npm install @types/react-amap` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-amap';`

npm上目前也没用@types/react-amap可以用

@ioslh
Copy link
Collaborator

ioslh commented Oct 11, 2017

好建议,我加上。

@ioslh
Copy link
Collaborator

ioslh commented Oct 12, 2017

已升级 v1.1.0,欢迎使用。
文档目前不完整,这几天补充。

@margox
Copy link
Author

margox commented Oct 13, 2017

真赞!!!

@margox margox closed this as completed Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants