-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)New featurers for ECMAScript (a.k.a. ESNext)Help WantedYou can do thisYou can do this
Milestone
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;
}
tonivj5, whzx5byb, sla100, bryan-hoang, johanneswuerbach and 15 moretonivj5, bryan-hoang and yvann
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)New featurers for ECMAScript (a.k.a. ESNext)Help WantedYou can do thisYou can do this