DragEvent should accept a DragEventInit inheriting from MouseEventInit #17885
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Help Wanted
You can do this
Milestone
TypeScript Version: master, eef7d8b
Code
Expected behavior:
This should typecheck, because the second argument to
new DragEvent
should inherit fromMouseEventInit
: https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEventActual behavior:
Typechecking fails, because the typings only allow
dataTransfer
property.The text was updated successfully, but these errors were encountered: