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:
Leo Kettmeir 2022-01-24 18:03:06 +01:00 committed by GitHub
parent ae0414fa35
commit 30ddf436d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 324 additions and 32 deletions

View file

@ -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>;
}