DataTransfer.types type incorrect (or maybe just incomplete). #10979
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
Help Wanted
You can do this
Milestone
TypeScript Version: Latest master rev (b7d1d11)
The type of the DataTransfer.types field does not match the spec, which seems to indicate that it should be of type DOMString[] not DOMStringList as it is today.
https://github.com/Microsoft/TypeScript/blob/b7d1d11ba32fe0aa01d7c06ad43c2c7f7d9ffb7f/lib/lib.dom.d.ts#L2191
https://html.spec.whatwg.org/multipage/interaction.html#the-datatransfer-interface
This appears to match the behavior of Chrome 53.0.2785.116; however, Firefox 48.0 shows the field being of type DOMStringList.
The text was updated successfully, but these errors were encountered: