WritableStream
interface
interface WritableStream<W = any>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.
variable
var WritableStream: { … }The constructor object for WritableStream, used to create a
writable stream from an underlying sink describing how written chunks are
handled.
Constructors
constructor
new WritableStream<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>Properties
locked
readonly locked: booleanprototype
readonly prototype: WritableStreamMethods
abort
abort(reason?: any): Promise<void>close
close(): Promise<void>getWriter
getWriter(): WritableStreamDefaultWriter<W>