Add types for String.{matchAll,replaceAll}
with a well known symbol
#61448
Labels
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
⚙ Compilation target
es2022
⚙ Library
ES2023
Missing / Incorrect Definition
Definitions for
String.{matchAll,replaceAll}
with an object that implements[Symbol.matchAll]
/[Symbol.replace]
, rather than a pure RegExp.Sample Code
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll
The text was updated successfully, but these errors were encountered: