0.3.5 • Published 6 months ago
@types/tar-js v0.3.5
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
// Type definitions for tar-js 0.3
// Project: https://github.com/beatgammit/tar-js
// Definitions by: Narazaka <https://github.com/Narazaka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 16 Dec 2021 22:32:08 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Narazaka.