Skip to content

Revert the type change to ts.Map #39366

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
merged 1 commit into from
Jul 2, 2020
Merged

Revert the type change to ts.Map #39366

merged 1 commit into from
Jul 2, 2020

Conversation

rbuckton
Copy link
Contributor

@rbuckton rbuckton commented Jul 1, 2020

This renames ts.ReadonlyMap<K, V> to ts.ReadonlyESMap<K, V> and ts.Map<K, V> to ts.ESMap<K, V> and restores the previous ts.ReadonlyMap<T> and ts.Map<T> types to maintain backwards compatibility with TS 3.9. This also adds a @deprecated JSDoc comment to ts.ReadonlyMap and ts.Map in favor of the versions with strongly-typed keys so that we can (hopefully) eventually reclaim the names in a future release.

Copy link
Contributor

@orta orta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, yeah, looks good to me

@rbuckton rbuckton merged commit 7b942b4 into master Jul 2, 2020
@rbuckton rbuckton deleted the revertTsMapTypeChange branch July 2, 2020 00:00
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.

4 participants