mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
17 lines
713 B
Plaintext
17 lines
713 B
Plaintext
// https://streams.spec.whatwg.org/#dictdef-underlyingsource
|
|
dictionary UnderlyingSource {
|
|
UnderlyingSourceStartCallback start;
|
|
UnderlyingSourcePullCallback pull;
|
|
UnderlyingSourceCancelCallback cancel;
|
|
ReadableStreamType type;
|
|
[EnforceRange] unsigned long long autoAllocateChunkSize;
|
|
};
|
|
|
|
typedef (ReadableStreamDefaultController or ReadableByteStreamController) ReadableStreamController;
|
|
|
|
callback UnderlyingSourceStartCallback = any (ReadableStreamController controller);
|
|
callback UnderlyingSourcePullCallback = Promise<undefined> (ReadableStreamController controller);
|
|
callback UnderlyingSourceCancelCallback = Promise<undefined> (optional any reason);
|
|
|
|
enum ReadableStreamType { "bytes" };
|