getStreamSink(stream: WritableStream,options?: StreamSinkOptions,): Sink & AsyncDisposable
A factory that returns a sink that writes to a WritableStream.
Note that the stream
is of Web Streams API, which is different from
Node.js streams. You can convert a Node.js stream to a Web Streams API
stream using stream.Writable.toWeb()
method.
stream: WritableStream
The stream to write to.
optional
options: StreamSinkOptions
The options for the sink.
Sink & AsyncDisposable
A sink that writes to the stream.