1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:57:45 +00:00

LibWeb: Add the WritableStreamDefaultWriter interface

This commit is contained in:
Matthew Olsson 2023-03-30 19:27:45 -07:00 committed by Linus Groh
parent e93560b769
commit bdab61ad93
11 changed files with 270 additions and 3 deletions

View file

@ -0,0 +1,16 @@
#import <Streams/WritableStream.idl>
[Exposed=*]
interface WritableStreamDefaultWriter {
constructor(WritableStream stream);
readonly attribute Promise<undefined> closed;
readonly attribute unrestricted double? desiredSize;
readonly attribute Promise<undefined> ready;
// FIXME:
// Promise<undefined> abort(optional any reason);
// Promise<undefined> close();
// undefined releaseLock();
// Promise<undefined> write(optional any chunk);
};