1.0.4 • Published 6 months ago

@types/targz v1.0.4

Weekly downloads
3,693
License
MIT
Repository
github
Last release
6 months ago

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.

index.d.ts

// Type definitions for targz 1.0
// Project: https://github.com/miskun/targz#readme
// Definitions by: Alexander Curtis <https://github.com/alexandercurtis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6

import * as tar from 'tar-fs';
import * as zlib from 'zlib';

export interface options {
    src: string;
    dest: string;
    tar?: tar.ExtractOptions | undefined;
    gz?: zlib.ZlibOptions | undefined;
}

export function compress(opts?: options, callback?: (error: Error | string | null) => void): void;
export function decompress(opts?: options, callback?: (error: Error | string | null) => void): void;

Additional Details

  • Last updated: Fri, 02 Jul 2021 21:32:12 GMT
  • Dependencies: @types/tar-fs
  • Global values: none

Credits

These definitions were written by Alexander Curtis.