Skip to content

Commit

Permalink
Augmented with #141
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Nov 23, 2022
1 parent 056435b commit 9720404
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions re2.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
declare module 're2' {

interface RE2MatchArray<K> extends Array<K> {
interface RE2MatchArray<K extends string> extends RegExpMatchArray /*Array<K>*/ {
index?: number;
input?: K;
0: K;
groups?: {
[key: string]: string
[key: string]: K
}
}

interface RE2ExecArray<K> extends Array<K> {
interface RE2ExecArray<K extends string> extends RegExpExecArray /*Array<K>*/ {
index: number;
input: K;
0: K;
groups?: {
[key: string]: string
[key: string]: K
}
}

Expand Down

0 comments on commit 9720404

Please sign in to comment.