mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
786 B
TypeScript
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;
|
|
}
|