TypeScript Version: master, eef7d8b
Code
let ev = new DragEvent('drag', {clientX: 40})
Expected behavior:
This should typecheck, because the second argument to new DragEvent should inherit from MouseEventInit: https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent
Actual behavior:
Typechecking fails, because the typings only allow dataTransfer property.
TypeScript Version: master, eef7d8b
Code
Expected behavior:
This should typecheck, because the second argument to
new DragEventshould inherit fromMouseEventInit: https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEventActual behavior:
Typechecking fails, because the typings only allow
dataTransferproperty.