Type alias DecompressFunc

DecompressFunc: ((buf, compression) => Promise<ArrayBuffer>)

Provide a decompression implementation that acts on buf and returns decompressed data.

Should use the native DecompressionStream on browsers, zlib on node. Should throw if the compression algorithm is not supported.

Type declaration

    • (buf, compression): Promise<ArrayBuffer>
    • Parameters

      Returns Promise<ArrayBuffer>

Generated using TypeDoc