Closed
Description
lib.es2021d.ts Update Request - Error.cause property
Proposal (Stage 3)
https://github.com/tc39/proposal-error-cause
Already implemented in Chrome 93:
https://www.chromestatus.com/feature/5727099325251584
Sample Code
interface Error {
cause?: any;
}
interface ErrorInit {
cause?: any;
}
interface ErrorConstructor {
new(message?: string, init?: ErrorInit): Error;
(message?: string, init?: ErrorInit): Error;
}