mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
This change takes all existing WebIDL files in the repo that had definition lines without four leading spaces, and fixes them so they have four leading spaces. (cherry picked from commit 51528ec6779202747cc3b99d3b77772a124a0b47)
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
#import <DOM/AbortSignal.idl>
|
|
#import <Streams/QueuingStrategy.idl>
|
|
#import <Streams/ReadableStreamBYOBReader.idl>
|
|
#import <Streams/ReadableStreamDefaultReader.idl>
|
|
#import <Streams/WritableStream.idl>
|
|
|
|
dictionary ReadableWritablePair {
|
|
required ReadableStream readable;
|
|
required WritableStream writable;
|
|
};
|
|
|
|
dictionary StreamPipeOptions {
|
|
boolean preventClose = false;
|
|
boolean preventAbort = false;
|
|
boolean preventCancel = false;
|
|
AbortSignal signal;
|
|
};
|
|
|
|
// https://streams.spec.whatwg.org/#enumdef-readablestreamreadermode
|
|
enum ReadableStreamReaderMode { "byob" };
|
|
|
|
// https://streams.spec.whatwg.org/#dictdef-readablestreamgetreaderoptions
|
|
dictionary ReadableStreamGetReaderOptions {
|
|
ReadableStreamReaderMode mode;
|
|
};
|
|
|
|
// https://streams.spec.whatwg.org/#readablestream
|
|
[Exposed=*, Transferable]
|
|
interface ReadableStream {
|
|
constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
|
|
|
|
static ReadableStream from(any asyncIterable);
|
|
|
|
readonly attribute boolean locked;
|
|
|
|
Promise<undefined> cancel(optional any reason);
|
|
ReadableStreamReader getReader(optional ReadableStreamGetReaderOptions options = {});
|
|
ReadableStream pipeThrough(ReadableWritablePair transform, optional StreamPipeOptions options = {});
|
|
Promise<undefined> pipeTo(WritableStream destination, optional StreamPipeOptions options = {});
|
|
sequence<ReadableStream> tee();
|
|
|
|
// FIXME: async iterable<any>(optional ReadableStreamIteratorOptions options = {});
|
|
};
|
|
|
|
typedef (ReadableStreamDefaultReader or ReadableStreamBYOBReader) ReadableStreamReader;
|