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.