DecompressionStream.writable

Baseline 2023

Newly available

Since May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

DecompressionStream 接口的 writable 属性返回 WritableStream

一个 WritableStream

示例

以下示例从 DecompressionStream 返回 WritableStream

js
let stream = new DecompressionStream("gzip");
console.log(stream.writeable); //一个 WritableStream

规范

Specification
Streams Standard
# dom-generictransformstream-writable

浏览器兼容性

BCD tables only load in the browser