-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Description
Bug Report
In #53334 TypeScript's lib was updated to allow Array#copyWithins 2nd argument start to be optional, to match the MDN documentation at that time.
The MDN documentation has since been updated to match the spec, meaning TypeScript 5.1's types are incorrect.
To remediate: a reversion of #53340 is needed. This might be a slightly breaking change for anyone that adopted TypeScript 5.1 and started (incorrectly) relying on the parameter being optional.
🔎 Search Terms
copyWithin
🕗 Version & Regression Information
- This changed between versions 5.0 and 5.1
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this