File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
tests/baselines/reference Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ interface RegExp {
1919 * containing the results of that search.
2020 * @param string A string to search within.
2121 */
22- [ Symbol . matchAll ] ( str : string ) : RegExpStringIterator < RegExpMatchArray > ;
22+ [ Symbol . matchAll ] ( str : string ) : RegExpStringIterator < RegExpExecArray > ;
2323}
Original file line number Diff line number Diff line change 22
33=== regexMatchAll-esnext.ts ===
44const matches = /\w/g[Symbol.matchAll]("matchAll");
5- >matches : RegExpStringIterator<RegExpMatchArray >
5+ >matches : RegExpStringIterator<RegExpExecArray >
66> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7- >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpMatchArray >
7+ >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpExecArray >
88> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9- >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpMatchArray >
9+ >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpExecArray >
1010> : ^ ^^ ^^^^^
1111>/\w/g : RegExp
1212> : ^^^^^^
@@ -26,7 +26,7 @@ const array = [...matches];
2626> : ^^^^^^^^^^^^^^^^^^
2727>...matches : RegExpMatchArray
2828> : ^^^^^^^^^^^^^^^^
29- >matches : RegExpStringIterator<RegExpMatchArray >
29+ >matches : RegExpStringIterator<RegExpExecArray >
3030> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3131
3232const { index, input } = array[0];
Original file line number Diff line number Diff line change 22
33=== regexMatchAll.ts ===
44const matches = /\w/g[Symbol.matchAll]("matchAll");
5- >matches : RegExpStringIterator<RegExpMatchArray >
5+ >matches : RegExpStringIterator<RegExpExecArray >
66> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7- >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpMatchArray >
7+ >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpExecArray >
88> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9- >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpMatchArray >
9+ >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpExecArray >
1010> : ^ ^^ ^^^^^
1111>/\w/g : RegExp
1212> : ^^^^^^
@@ -26,7 +26,7 @@ const array = [...matches];
2626> : ^^^^^^^^^^^^^^^^^^
2727>...matches : RegExpMatchArray
2828> : ^^^^^^^^^^^^^^^^
29- >matches : RegExpStringIterator<RegExpMatchArray >
29+ >matches : RegExpStringIterator<RegExpExecArray >
3030> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3131
3232const { index, input } = array[0];
You can’t perform that action at this time.
0 commit comments