Skip to content

Commit

Permalink
Fix RegExpIndicesArray by adding undefined to type definition
Browse files Browse the repository at this point in the history
Fix #61078
  • Loading branch information
stefnotch authored Jan 29, 2025
1 parent 0652664 commit 79b8d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/es2022.regexp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface RegExpExecArray {
indices?: RegExpIndicesArray;
}

interface RegExpIndicesArray extends Array<[number, number]> {
interface RegExpIndicesArray extends Array<[number, number] | undefined> {
groups?: {
[key: string]: [number, number];
};
Expand Down

0 comments on commit 79b8d92

Please sign in to comment.