Add readonly typings for Set and Map similar to ReadonlyArray #10919
Labels
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Array has a companion ReadonlyArray type with all the mutation methods removed. There should be similar versions for the es6 collections Set and Map in es2015.collection.d.ts.
The benefit of this change is that it would allow you to express a collection which is not changed after initialization
The text was updated successfully, but these errors were encountered: