We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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; }
The text was updated successfully, but these errors were encountered:
Duplicate of #17053.
Sorry, something went wrong.
Array<string | undefined>
@abramobagnara, where in the ECMA specification does it have the index prop as optional (undefined)?
index
@jedmao, this is not what I've written: the fix should be about array items type.
No branches or pull requests
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Expected behavior:
From ECMA specification it should be:
Actual behavior:
Currently is:
The text was updated successfully, but these errors were encountered: