Skip to content

baidumap-web-sdk: Fix weak type errors #19196

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

Merged
1 commit merged into from
Aug 28, 2017
Merged

baidumap-web-sdk: Fix weak type errors #19196

1 commit merged into from
Aug 28, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 21, 2017

This was a compile error now thanks to microsoft/TypeScript#16047.
When a class implements an interface it normally has to redeclare all of the interface's members. (We weren't catching that because all of the members of Overlay were optional, so a class could declare itself to implement Overlay without actually implementing anything.)
We can fix this problem by merging the class with an interface extending Overlay, so it gets all of the members of Overlay without having to redeclare them.

@dt-bot
Copy link
Member

dt-bot commented Aug 21, 2017

types/baidumap-web-sdk/baidumap.overlay.d.ts

to author (Codemonk (account can't be detected)). Could you review this PR?
👍 or 👎?

Checklist

  • pass the Travis CI test?

@ghost
Copy link
Author

ghost commented Aug 21, 2017

CC @wushilong

@typescript-bot typescript-bot added the Unowned This PR touches a package that doesn't have any listed owners. label Aug 21, 2017
@typescript-bot
Copy link
Contributor

This PR has been open and unchanged 5 days without signoff or complaint. This will be merged by a maintainer soon if there are no objections.

@typescript-bot typescript-bot added the Unmerged The author did not merge the PR when it was ready. label Aug 26, 2017
@ghost ghost merged commit b465332 into master Aug 28, 2017
@ghost ghost deleted the baidumap-web-sdk branch August 28, 2017 14:23
@ghost ghost restored the baidumap-web-sdk branch October 2, 2017 19:01
@ghost ghost deleted the baidumap-web-sdk branch October 2, 2017 19:03
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unmerged The author did not merge the PR when it was ready. Unowned This PR touches a package that doesn't have any listed owners.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants