Skip to content

Remove unhelpful Map constructor type signature #1611

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

Closed
wants to merge 1 commit into from

Conversation

conartist6
Copy link
Contributor

I don't see what the point of supporting this is. It's going to return something with an incorrect type every time that K and V aren't identical. That would then force the library user to do casts everywhere. Also the flow types do not have such a constructor overload.

leebyron added a commit that referenced this pull request Oct 27, 2018
These have caused more issues with typing than they fixed, unfortunately. While the runtime behavior is still supported, TypeScript types can't capture immutable List as Tuple.

Closes #1611
leebyron added a commit that referenced this pull request Oct 27, 2018
These have caused more issues with typing than they fixed, unfortunately. While the runtime behavior is still supported, TypeScript types can't capture immutable List as Tuple.

Closes #1611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants