Files
serenity/Userland/Libraries/LibWeb/HTML/DataTransferItem.idl
Timothy Flynn cd69ebdecd LibWeb: Implement the DataTransferItem kind and type attributes
(cherry picked from commit 001d8384e5ea51e2a435517814d299174d65d786)
2024-11-01 22:04:14 -04:00

13 lines
387 B
Plaintext

#import <FileAPI/File.idl>
callback FunctionStringCallback = undefined (DOMString data);
// https://html.spec.whatwg.org/multipage/dnd.html#datatransferitem
[Exposed=Window]
interface DataTransferItem {
readonly attribute DOMString kind;
readonly attribute DOMString type;
[FIXME] undefined getAsString(FunctionStringCallback? _callback);
[FIXME] File? getAsFile();
};