The new EventListener definition is not backwards compatible and/or has an error #21948
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.7.0-dev.201xxxxx
I think was broken by #21889, and is not one of the changes listed as a fixed bug in the PR, so may be unintentional. The change has consequently has broken a handful of our RWC tests. Specifically, very common patterns like
Code
The change is that the webworker lib file now defines
EventListener
as:but it was:
There also used to be a type:
that some RWC tests rely on (and this type looks to be what the alias is emulating).
The text was updated successfully, but these errors were encountered: