mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(ext/web): add CompressionStream API (#11728)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
parent
ae0414fa35
commit
30ddf436d0
8 changed files with 324 additions and 32 deletions
14
ext/web/lib.deno_web.d.ts
vendored
14
ext/web/lib.deno_web.d.ts
vendored
|
@ -809,3 +809,17 @@ declare function structuredClone(
|
|||
value: any,
|
||||
options?: StructuredSerializeOptions,
|
||||
): any;
|
||||
|
||||
declare class CompressionStream {
|
||||
constructor(format: string);
|
||||
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
}
|
||||
|
||||
declare class DecompressionStream {
|
||||
constructor(format: string);
|
||||
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue