1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

LibWeb: Add BodyInit union type

This commit is contained in:
Linus Groh 2022-09-22 00:10:41 +01:00
parent 571f4e3ebb
commit 8f5620b5d9
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,11 @@
#import <FileAPI/Blob.idl>
#import <Streams/ReadableStream.idl>
#import <URL/URLSearchParams.idl>
// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
typedef (Blob or BufferSource or URLSearchParams or USVString) XMLHttpRequestBodyInit;
// https://fetch.spec.whatwg.org/#bodyinit
// FIXME: IDLParser doesn't resolve nested unions properly
// typedef (ReadableStream or XMLHttpRequestBodyInit) BodyInit;
typedef (ReadableStream or Blob or BufferSource or URLSearchParams or USVString) BodyInit;