npm install --save @types/targz
This package contains type definitions for targz (https://github.com/miskun/targz#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/targz.
/// <reference types="node" />
import * as tar from "tar-fs";
import * as zlib from "zlib";
export interface CompressOptions {
src: string;
dest: string;
tar?: tar.PackOptions | undefined;
gz?: zlib.ZlibOptions | undefined;
}
export interface DecompressOptions {
src: string;
dest: string;
tar?: tar.ExtractOptions | undefined;
gz?: zlib.ZlibOptions | undefined;
}
export function compress(
opts?: CompressOptions,
callback?: (error?: Error | string | null | undefined) => void,
): void;
export function decompress(
opts?: DecompressOptions,
callback?: (error?: Error | string | null | undefined) => void,
): void;
- Last updated: Wed, 05 Feb 2025 11:02:27 GMT
- Dependencies: @types/node, @types/tar-fs
These definitions were written by Alexander Curtis.