/
githubmirror
/
TypeScript
Обзор
Документация
Войти
/
githubmirror
/
TypeScript
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib/es2020.symbol.wellknown.d.ts
23 строки
775 B
lionel-rowe
Return iterable of RegExpExecArray from RegExp#[Symbol.matchAll] (#60516)
07 фев 2026, 01:21
Не верифицирован
07 фев 2026, 01:21
8bb72d2
Код
Авторство
О чём код?
/// <reference lib="es2015.iterable" /> /// <reference lib="es2015.symbol" /> interface SymbolConstructor { /** * A regular expression method that matches the regular expression against a string. Called * by the String.prototype.matchAll method. */ readonly matchAll: unique symbol; } interface RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> { [Symbol.iterator](): RegExpStringIterator<T>; } interface RegExp { /** * Matches a string with this regular expression, and returns an iterable of matches * containing the results of that search. * @param string A string to search within. */ [Symbol.matchAll](str: string): RegExpStringIterator<RegExpExecArray>; }