TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

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

Open giraugh opened this issue 1 year ago • 1 comments

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!

giraugh avatar Jan 15 '24 05:01 giraugh