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

0.3.5 • Public • Published

Installation

npm install --save @types/tar-js

Summary

This package contains type definitions for tar-js (https://github.com/beatgammit/tar-js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar-js.

index.d.ts

declare class Tar {
    written: number;
    out: Uint8Array;
    constructor(recordsPerBlock?: number);
    append(
        filepath: string,
        input: string | Uint8Array,
        opts?: Tar.TarOptions,
        callback?: (out: Uint8Array) => any,
    ): Uint8Array;
    append(filepath: string, input: string | Uint8Array, callback?: (out: Uint8Array) => any): Uint8Array;
    clear(): void;
}

declare namespace Tar {
    interface TarOptions {
        mode?: number | undefined;
        mtime?: number | undefined;
        uid?: number | undefined;
        gid?: number | undefined;
        owner?: string | undefined;
        group?: string | undefined;
    }
}

export = Tar;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Narazaka.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/tar-js

Weekly Downloads

2,639

Version

0.3.5

License

MIT

Unpacked Size

3.88 kB

Total Files

5

Last publish

Collaborators

  • types