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

Improved types for TypeScript 3.7 #506

Merged
merged 10 commits into from Jan 14, 2020
Merged

Improved types for TypeScript 3.7 #506

merged 10 commits into from Jan 14, 2020

Conversation

mweststrate
Copy link
Collaborator

@mweststrate mweststrate commented Jan 14, 2020

Completes #448

Mossop and others added 4 commits January 2, 2020 22:07
…ixes #494.

TypeScript provides the ReadonlySet and ReadonlyMap types which match
their normal counterparts but without any methods that mutate their data.
This change makes Immutable<Map> and Immutable<Set> map to those types
directly.

Worth noting that Map extends ReadonlyMap so we only need to check for
one to know what the resulting type is, the same goes for Set and
ReadonlySet.

This also removes the intermediate Set/Map types since TypeScript no
longer seems to need those (likely since TypeScript 3.7, see #448).
@mweststrate mweststrate merged commit f930ce1 into master Jan 14, 2020
@aleclarson
Copy link
Member

🎉 This PR is included in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants