-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Bug in type of RegExpMatchArray/RegExpExecArray #17094
Copy link
Copy link
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Expected behavior:
From ECMA specification it should be:
interface RegExpMatchArray extends Array<string | undefined> {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array<string | undefined> {
index: number;
input: string;
}Actual behavior:
Currently is:
interface RegExpMatchArray extends Array<string> {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array<string> {
index: number;
input: string;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created