import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { DataTransferItem } = dom;
One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
Methods
getAsFile(): File | null
Returns a File object, if the drag data item kind is File.
getAsString(callback: FunctionStringCallback | null): void
Invokes the callback with the string data as the argument, if the drag data item kind is text.