2022-11-30
Below is the change introduced in this compatibility date:
===================================================================
--- 2022-10-31
+++ 2022-11-30
@@ -198,8 +198,12 @@
WritableStreamDefaultWriter: typeof WritableStreamDefaultWriter;
TransformStream: typeof TransformStream;
ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy;
CountQueuingStrategy: typeof CountQueuingStrategy;
+ ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest;
+ ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
+ ReadableByteStreamController: typeof ReadableByteStreamController;
+ WritableStreamDefaultController: typeof WritableStreamDefaultController;
CompressionStream: typeof CompressionStream;
DecompressionStream: typeof DecompressionStream;
TextEncoderStream: typeof TextEncoderStream;
TextDecoderStream: typeof TextDecoderStream;
@@ -1423,29 +1427,28 @@
}
declare interface ReadableStreamGetReaderOptions {
mode: "byob";
}
-declare interface ReadableStreamBYOBRequest {
+declare abstract class ReadableStreamBYOBRequest {
readonly view: Uint8Array | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBuffer | ArrayBufferView): void;
readonly atLeast: number | null;
}
-declare interface ReadableStreamDefaultController<R = any> {
+declare abstract class ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(reason: any): void;
}
-declare interface ReadableByteStreamController {
+declare abstract class ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBuffer | ArrayBufferView): void;
error(reason: any): void;
}
-/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
-declare interface WritableStreamDefaultController {
+declare abstract class WritableStreamDefaultController {
readonly signal: AbortSignal;
error(reason?: any): void;
}
declare interface TransformStreamDefaultController<O = any> {