/
githubmirror
/
TypeScript
Обзор
Документация
Войти
/
githubmirror
/
TypeScript
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib/es2022.regexp.d.ts
21 строка
511 B
stefnotch
Fix RegExpIndicesArray by adding undefined to type definition (#61079)
07 фев 2026, 00:56
Не верифицирован
07 фев 2026, 00:56
0457b60
Код
Авторство
О чём код?
interface RegExpMatchArray { indices?: RegExpIndicesArray; } interface RegExpExecArray { indices?: RegExpIndicesArray; } interface RegExpIndicesArray extends Array<[number, number] | undefined> { groups?: { [key: string]: [number, number]; }; } interface RegExp { /** * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression. * Default is false. Read-only. */ readonly hasIndices: boolean; }