TypeScript 4.4 and removed `MouseWheenEvent`
jvanoostveen opened this issue · comments
When running our codebase with TypeScript 4.4 beta, I noticed the following error:
node_modules/maquette/dist/interfaces.d.ts:215:36 - error TS2304: Cannot find name 'MouseWheelEvent'.
215 onmousewheel?(ev: WheelEvent | MouseWheelEvent): boolean | void;
It seems TypeScript removed the non-standard deprecated MouseWheelEvent from its lib.
A workaround is adding
interface MouseWheelEvent extends WheelEvent {}
to our custom / backwards compatibility extensions.d.ts
.
Resolved in upcoming release (3.4.2)
Correction, v3.5.1