diff --git a/src/lib/es2020.symbol.wellknown.d.ts b/src/lib/es2020.symbol.wellknown.d.ts index cdf0349f9b420..0f268da0a10f3 100644 --- a/src/lib/es2020.symbol.wellknown.d.ts +++ b/src/lib/es2020.symbol.wellknown.d.ts @@ -19,5 +19,5 @@ interface RegExp { * containing the results of that search. * @param string A string to search within. */ - [Symbol.matchAll](str: string): RegExpStringIterator; + [Symbol.matchAll](str: string): RegExpStringIterator; } diff --git a/tests/baselines/reference/regexMatchAll-esnext.types b/tests/baselines/reference/regexMatchAll-esnext.types index af8bf8d1466a9..dee7700133d9f 100644 --- a/tests/baselines/reference/regexMatchAll-esnext.types +++ b/tests/baselines/reference/regexMatchAll-esnext.types @@ -2,11 +2,11 @@ === regexMatchAll-esnext.ts === const matches = /\w/g[Symbol.matchAll]("matchAll"); ->matches : RegExpStringIterator +>matches : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator +>/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator +>/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator > : ^ ^^ ^^^^^ >/\w/g : RegExp > : ^^^^^^ @@ -26,7 +26,7 @@ const array = [...matches]; > : ^^^^^^^^^^^^^^^^^^ >...matches : RegExpMatchArray > : ^^^^^^^^^^^^^^^^ ->matches : RegExpStringIterator +>matches : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const { index, input } = array[0]; diff --git a/tests/baselines/reference/regexMatchAll.types b/tests/baselines/reference/regexMatchAll.types index 9b937a0577e25..3e22522c9845f 100644 --- a/tests/baselines/reference/regexMatchAll.types +++ b/tests/baselines/reference/regexMatchAll.types @@ -2,11 +2,11 @@ === regexMatchAll.ts === const matches = /\w/g[Symbol.matchAll]("matchAll"); ->matches : RegExpStringIterator +>matches : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator +>/\w/g[Symbol.matchAll]("matchAll") : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator +>/\w/g[Symbol.matchAll] : (str: string) => RegExpStringIterator > : ^ ^^ ^^^^^ >/\w/g : RegExp > : ^^^^^^ @@ -26,7 +26,7 @@ const array = [...matches]; > : ^^^^^^^^^^^^^^^^^^ >...matches : RegExpMatchArray > : ^^^^^^^^^^^^^^^^ ->matches : RegExpStringIterator +>matches : RegExpStringIterator > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const { index, input } = array[0];