ladybird/Libraries/LibWeb/XHR/FormData.idl
Shannon Booth 09d11bf2e3 LibWeb: Use FormDataEntryValue for FormData.get()
The bindings generator can now resolve nullable FormDataEntryValue
return types, so remove the expanded union spelling and the old FIXME.
2026-06-06 16:59:12 +02:00

17 lines
727 B
Text

typedef (File or USVString) FormDataEntryValue;
// https://xhr.spec.whatwg.org/#interface-formdata
[Exposed=(Window,Worker)]
interface FormData {
constructor(optional HTMLFormElement form, optional HTMLElement? submitter = null);
undefined append(USVString name, USVString value);
undefined append(USVString name, Blob blobValue, optional USVString filename);
undefined delete(USVString name);
FormDataEntryValue? get(USVString name);
sequence<FormDataEntryValue> getAll(USVString name);
boolean has(USVString name);
undefined set(USVString name, USVString value);
undefined set(USVString name, Blob blobValue, optional USVString filename);
iterable<USVString, FormDataEntryValue>;
};