@types/lzma
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Installation

npm install --save @types/lzma

Summary

This package contains type definitions for lzma (http://nmrugg.github.com/LZMA-JS/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lzma.

/// <reference types="node" />

export as namespace LZMA;

export type Mode = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;

export function compress(
    str: Buffer | string | Uint8Array,
    mode?: Mode,
): Uint8Array;
export function compress(
    str: Buffer | string | Uint8Array,
    mode: Mode,
    on_finish: (result: Uint8Array, error?: Error) => void,
    on_progress?: (percent: number) => void,
): void;

export function decompress(
    byte_array: Buffer | Uint8Array,
): Uint8Array | string;
export function decompress(
    byte_array: Buffer | Uint8Array,
    on_finish?: (result: Uint8Array | string, error?: Error) => void,
    on_progress?: (percent: number) => void,
): void;

Additional Details

  • Last updated: Mon, 11 Mar 2024 21:36:03 GMT
  • Dependencies: @types/node

Credits

These definitions were written by zlatko_andonovski.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/lzma

Weekly Downloads

14

Version

2.3.0

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types