Skip to content

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