Map constructor should accept readonly tuples #29721
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fix Available
A PR has been opened for this issue
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.4.0-dev.20190202
Search Terms:
Readonly tuple, map, as const, const context
Code
Expected behavior:
No error
Actual behavior:
Playground Link:
Related Issues:
The same issue applies to some libraries on DefinitelyTyped. Maybe readonly tuples should be added to Common mistakes, like arrays?
The text was updated successfully, but these errors were encountered: