microsoft / TypeScript-DOM-lib-generator

Tool for generating dom related TypeScript and JavaScript library files
Apache License 2.0
616 stars 417 forks source link

Type for `DataTransferItem.kind` is broader than implied by spec #1674

Open giraugh opened 8 months ago

giraugh commented 8 months ago

The type for the kind field on DataTransferItem is currently string however the spec suggests the more narrow literal type of "string" | "file". Possible also including the empty string.

DataTransferItem.kind (HTML Drag and Drop) Returns the drag data item kind, one of: "string", "file".

Happy to open a PR if this is a desired change :thumbsup: Cheers!

andogq commented 4 months ago

I've also encountered this discrepancy. Would be eager to see some progress on this!