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

TS 的类型定义是不是改成 @types/bmapgl-browser 了? #75

Open
lqzhgood opened this issue Sep 3, 2023 · 3 comments
Open

TS 的类型定义是不是改成 @types/bmapgl-browser 了? #75

lqzhgood opened this issue Sep 3, 2023 · 3 comments

Comments

@lqzhgood
Copy link
Contributor

lqzhgood commented Sep 3, 2023

npm 上搜到以下两个库

https://www.npmjs.com/package/@types/bmapgl // * Last updated: Tue, 18 Apr 2023 17:33:12 GMT
https://www.npmjs.com/package/@types/bmapgl-browser // * Last updated: Mon, 24 Jul 2023 15:02:52 GMT

文档里面都写的是 bmapgl 这个包,链接 https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bmapgl 进去 404。

两者代码完全一样,只有 Readmepackage.json 的区别

bmapgl-browserpackage.jsonversion0.0.0

@AmbitionsXXXV
Copy link

后面我下载成功了,"@types/bmapgl": "0.0.7",
但是我现在忘了当时咋成功的了,好像是把lock删了就好了,总之是个很简单的操作就可以解决这个问题
谢谢帮忙

@chengkailiu
Copy link

使用 ts的话,使用官网示例代码,ts编译报错,又遇到类似情况的么?

@kidkang
Copy link

kidkang commented Dec 21, 2023

使用 ts的话,使用官网示例代码,ts编译报错,又遇到类似情况的么?

有!应该定义的类型错误!Map标签少了一个children属性,其它子标签,属性map应该改为非必传!

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

4 participants