Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WritableStream

This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.

interface WritableStream <W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
}
var WritableStream: {
prototype: WritableStream;
new <W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
}
;

§Type Parameters

§
W = any
[src]

§Properties

§
readonly locked: boolean
[src]

§Methods

§
abort(reason?: any): Promise<void>
[src]
§
close(): Promise<void>
[src]