File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
tests/baselines/reference Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44
55interface String {
66 /**
7- * Matches a string with a regular expression, and returns an iterable of matches
7+ * Matches a string with a regular expression or string , and returns an iterable of matches
88 * containing the results of that search.
9- * @param regexp A variable name or string literal containing the regular expression pattern and flags.
9+ * @param regexp A regular expression or string literal with which to search the string
1010 */
11- matchAll ( regexp : RegExp ) : RegExpStringIterator < RegExpExecArray > ;
11+ matchAll ( regexp : RegExp | string ) : RegExpStringIterator < RegExpExecArray > ;
1212
1313 /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
1414 toLocaleLowerCase ( locales ?: Intl . LocalesArgument ) : string ;
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ const matches = "matchAll".matchAll(/\w/g);
66> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77>"matchAll".matchAll(/\w/g) : RegExpStringIterator<RegExpExecArray>
88> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9- >"matchAll".matchAll : (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>
10- > : ^ ^^ ^^^^^
9+ >"matchAll".matchAll : (regexp: RegExp | string ) => RegExpStringIterator<RegExpExecArray>
10+ > : ^ ^^ ^^^^^
1111>"matchAll" : "matchAll"
1212> : ^^^^^^^^^^
13- >matchAll : (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>
14- > : ^ ^^ ^^^^^
13+ >matchAll : (regexp: RegExp | string ) => RegExpStringIterator<RegExpExecArray>
14+ > : ^ ^^ ^^^^^
1515>/\w/g : RegExp
1616> : ^^^^^^
1717
You can’t perform that action at this time.
0 commit comments