MouseWheelEvent -> WheelEvent - Intentional Breaking Change #9071
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:
nightly (v1.9.0-dev.20160610-1.0)
Code
Expected behavior:
Compiles without issue...
Actual behavior:
Errors with
error TS2304: Cannot find name 'MouseWheelEvent'.
It appears up until about 21 days ago when the
lib.dom.d.ts
was updated, what was previously namedMouseWheelEvent
is now namedWheelEvent
. Looking it seems that historically IE/Edge had referred to it asMouseWheelEvent
and now refers to it by the living DOM standard ofWheelEvent
, but I suspect this will cause a lot of breakage and downstream typings libraries (I have at least two sets of typings that are now "broken").I suspect it is in everyone's best interest to move forward, but I suspect this will cause some carnage when TS2.0 gets released and maybe should go into whatever breaking changes pile there is.
For reference, a simple workaround is to put within a
.d.ts
file within the scope of the project:The text was updated successfully, but these errors were encountered: