ReadonlydesiredThe desiredSize read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
The enqueue() method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
Optionalchunk: OThe error() method of the TransformStreamDefaultController interface errors both sides of the stream. Any further interactions with it will fail with the given error message, and any chunks in the queue will be discarded.
Optionalreason: anyThe terminate() method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
The
TransformStreamDefaultControllerinterface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.MDN Reference