Installation
npm install --save @types/decompress
Summary
This package contains type definitions for decompress (https://github.com/kevva/decompress#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/decompress.
export = decompress;
declare function decompress(
input: string | Buffer,
output?: string | decompress.DecompressOptions,
opts?: decompress.DecompressOptions,
): Promise<decompress.File[]>;
declare namespace decompress {
interface File {
data: Buffer;
mode: number;
mtime: string;
path: string;
type: string;
}
interface DecompressOptions {
filter?(file: File): boolean;
map?(file: File): File;
plugins?: any[] | undefined;
strip?: number | undefined;
}
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by York Yao, and Jesse Bethke.