mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Revert "ES2020: fix String.prototype.matchAll type and description" (#62885)
This commit is contained in:
parent
bbb5322c96
commit
c84cb94778
6
src/lib/es2020.string.d.ts
vendored
6
src/lib/es2020.string.d.ts
vendored
@ -4,11 +4,11 @@
|
||||
|
||||
interface String {
|
||||
/**
|
||||
* Matches a string with a regular expression or string, and returns an iterable of matches
|
||||
* Matches a string with a regular expression, and returns an iterable of matches
|
||||
* containing the results of that search.
|
||||
* @param regexp A regular expression or string literal with which to search the string
|
||||
* @param regexp A regular expression
|
||||
*/
|
||||
matchAll(regexp: RegExp | string): RegExpStringIterator<RegExpExecArray>;
|
||||
matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;
|
||||
|
||||
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
|
||||
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
|
||||
|
||||
@ -6,12 +6,12 @@ const matches = "matchAll".matchAll(/\w/g);
|
||||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
>"matchAll".matchAll(/\w/g) : RegExpStringIterator<RegExpExecArray>
|
||||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
>"matchAll".matchAll : (regexp: RegExp | string) => RegExpStringIterator<RegExpExecArray>
|
||||
> : ^ ^^ ^^^^^
|
||||
>"matchAll".matchAll : (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>
|
||||
> : ^ ^^ ^^^^^
|
||||
>"matchAll" : "matchAll"
|
||||
> : ^^^^^^^^^^
|
||||
>matchAll : (regexp: RegExp | string) => RegExpStringIterator<RegExpExecArray>
|
||||
> : ^ ^^ ^^^^^
|
||||
>matchAll : (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>
|
||||
> : ^ ^^ ^^^^^
|
||||
>/\w/g : RegExp
|
||||
> : ^^^^^^
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user