DefinitelyTyped/types/7zip-min/index.d.ts
2019-10-02 13:58:59 -07:00

19 lines
786 B
TypeScript

// Type definitions for 7zip-min 1.1
// Project: https://github.com/onikienko/7zip-min
// Definitions by: Tanandara <https://github.com/Tanandara>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.6
export function unpack(pathToArchive: string, whereToUnpack: string, errorCallback: (err: any) => void): void;
export function pack(pathToDirOrFile: string, pathToArchive: string, errorCallback: (err: any) => void): void;
export function list(pathToArchive: string, callback: (err: any, result: Result[]) => void): void;
export function cmd(command: string[], errorCallback: (err: any) => void): void;
export interface Result {
name: string;
date: string;
time: string;
attr: string;
size: string;
compressed: string;
}