-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
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
Error
constructor has second argument
#1238
Comments
|
If you set target to ES2022 it does work: https://www.typescriptlang.org/play?target=9#code/MYewdgzgLgBApjAvDMcDuMCiAnbJsAUA5DntjALZwQQCGA5nEQDQwDeMwtArhHAFwp0WXPmIBGAEwBmIgEoYAXzkBuALAAoUJBAAbOADpdIegUNdecOUA |
@everhardt They were added in TypeScript 4.6. |
@yume-chan . Yes indeed. I don't get your point though, you still need to set |
This issue was filed before TS 4.6 and |
The
Error
constructor has signatureError ( message [ , options ] )
https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-error-message
But at the moment, trying to set
cause
or readcause
leads to a type error. PlaygroundThe text was updated successfully, but these errors were encountered: