22
33=== regexMatchAll-esnext.ts ===
44const matches = /\w/g[Symbol.matchAll]("matchAll");
5- >matches : RegExpStringIterator<RegExpMatchArray >
6- > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7- >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpMatchArray >
8- > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9- >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpMatchArray >
10- > : ^ ^^ ^^^^^
5+ >matches : RegExpStringIterator<RegExpExecArray >
6+ > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7+ >/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator<RegExpExecArray >
8+ > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+ >/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator<RegExpExecArray >
10+ > : ^ ^^ ^^^^^
1111>/\w/g : RegExp
1212> : ^^^^^^
1313>Symbol.matchAll : unique symbol
@@ -20,24 +20,24 @@ const matches = /\w/g[Symbol.matchAll]("matchAll");
2020> : ^^^^^^^^^^
2121
2222const array = [...matches];
23- >array : RegExpMatchArray []
24- > : ^^^^^^^^^^^^^^^^^^
25- >[...matches] : RegExpMatchArray []
26- > : ^^^^^^^^^^^^^^^^^^
27- >...matches : RegExpMatchArray
28- > : ^^^^^^^^^^^^^^^^
29- >matches : RegExpStringIterator<RegExpMatchArray >
30- > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+ >array : RegExpExecArray []
24+ > : ^^^^^^^^^^^^^^^^^
25+ >[...matches] : RegExpExecArray []
26+ > : ^^^^^^^^^^^^^^^^^
27+ >...matches : RegExpExecArray
28+ > : ^^^^^^^^^^^^^^^
29+ >matches : RegExpStringIterator<RegExpExecArray >
30+ > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3131
3232const { index, input } = array[0];
33- >index : number | undefined
34- > : ^^^^^^^^^^^^^^^^^^
35- >input : string | undefined
36- > : ^^^^^^^^^^^^^^^^^^
37- >array[0] : RegExpMatchArray
38- > : ^^^^^^^^^^^^^^^^
39- >array : RegExpMatchArray []
40- > : ^^^^^^^^^^^^^^^^^^
33+ >index : number
34+ > : ^^^^^^
35+ >input : string
36+ > : ^^^^^^
37+ >array[0] : RegExpExecArray
38+ > : ^^^^^^^^^^^^^^^
39+ >array : RegExpExecArray []
40+ > : ^^^^^^^^^^^^^^^^^
4141>0 : 0
4242> : ^
4343
0 commit comments