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

1.0.5 • Public • Published

Installation

npm install --save @types/targz

Summary

This package contains type definitions for targz (https://github.com/miskun/targz#readme).

Details

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;

Additional Details

Credits

These definitions were written by Alexander Curtis.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/targz

Weekly Downloads

8,032

Version

1.0.5

License

MIT

Unpacked Size

4.06 kB

Total Files

5

Last publish

Collaborators

  • types