String#matchAll should return iterable of RegExpExecArray (fixes #36788) (#55565)

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
Nil Admirari
2023-11-30 21:51:08 +00:00
committed by GitHub
parent 8d1fa440dd
commit fd74874733
2 changed files with 11 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ interface String {
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;