-
Notifications
You must be signed in to change notification settings - Fork 13.4k
unhandledrejection event missing from WindowEventMap #20656
Copy link
Copy link
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 TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
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 TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
TypeScript Version: 2.6.1
Code
Expected behavior:
Event listener for
unhandledrejectionshould have event typePromiseRejectionEvent.I believe an entry needs adding to
WindowEventMapinlib.dom.d.ts.Actual behavior:
Compiler error as shown in code sample above, when using strict mode.
Workaround:
Use declaration merging; create a typings file and include