File tree 2 files changed +11
-11
lines changed
tests/baselines/reference 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ interface String {
6
6
* containing the results of that search.
7
7
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
8
8
*/
9
- matchAll ( regexp : RegExp ) : IterableIterator < RegExpMatchArray > ;
9
+ matchAll ( regexp : RegExp ) : IterableIterator < RegExpExecArray > ;
10
10
11
11
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
12
12
toLocaleLowerCase ( locales ?: Intl . LocalesArgument ) : string ;
Original file line number Diff line number Diff line change 2
2
3
3
=== stringMatchAll.ts ===
4
4
const matches = "matchAll".matchAll(/\w/g);
5
- >matches : IterableIterator<RegExpMatchArray >
6
- >"matchAll".matchAll(/\w/g) : IterableIterator<RegExpMatchArray >
7
- >"matchAll".matchAll : (regexp: RegExp) => IterableIterator<RegExpMatchArray >
5
+ >matches : IterableIterator<RegExpExecArray >
6
+ >"matchAll".matchAll(/\w/g) : IterableIterator<RegExpExecArray >
7
+ >"matchAll".matchAll : (regexp: RegExp) => IterableIterator<RegExpExecArray >
8
8
>"matchAll" : "matchAll"
9
- >matchAll : (regexp: RegExp) => IterableIterator<RegExpMatchArray >
9
+ >matchAll : (regexp: RegExp) => IterableIterator<RegExpExecArray >
10
10
>/\w/g : RegExp
11
11
12
12
const array = [...matches];
13
- >array : RegExpMatchArray []
14
- >[...matches] : RegExpMatchArray []
15
- >...matches : RegExpMatchArray
16
- >matches : IterableIterator<RegExpMatchArray >
13
+ >array : RegExpExecArray []
14
+ >[...matches] : RegExpExecArray []
15
+ >...matches : RegExpExecArray
16
+ >matches : IterableIterator<RegExpExecArray >
17
17
18
18
const { index, input } = array[0];
19
19
>index : number
20
20
>input : string
21
- >array[0] : RegExpMatchArray
22
- >array : RegExpMatchArray []
21
+ >array[0] : RegExpExecArray
22
+ >array : RegExpExecArray []
23
23
>0 : 0
24
24
You can’t perform that action at this time.
0 commit comments