TransformStream.writable

The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.

Syntax

let writable = TransformStream.writable;

Value

A WritableStream.

Examples

The following example creates a new TransformStream as a textEncoderStream, and prints the value of writable to the console.

const textEncoderStream = new TransformStream();
console.log(textEncoderStream.writable) // a WritableStream

Specifications

Specification
Streams Standard (Streams)
# ref-for-ts-writable②

Browser compatibility

BCD tables only load in the browser