mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
- type NodeJS style callbacks - update tests - drop TS minimum https://github.com/onikienko/7zip-min/blob/master/index.js#L57 https://github.com/onikienko/7zip-min/blob/master/index.js#L64 Thanks!
24 lines
993 B
TypeScript
24 lines
993 B
TypeScript
// Type definitions for 7zip-min 1.3
|
|
// Project: https://github.com/onikienko/7zip-min
|
|
// Definitions by: Tanandara <https://github.com/Tanandara>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function unpack(pathToArchive: string, whereToUnpack: string, errorCallback: (err: Error | null) => void): void;
|
|
export function unpack(pathToArchive: string, errorCallback: (err: Error | null) => void): void;
|
|
export function pack(pathToDirOrFile: string, pathToArchive: string, errorCallback: (err: Error | null) => void): void;
|
|
export function list(pathToArchive: string, callback: (err: Error | null, result: Result[]) => void): void;
|
|
export function cmd(command: string[], errorCallback: (err: Error | null) => void): void;
|
|
export interface Result {
|
|
name: string;
|
|
date: string;
|
|
time: string;
|
|
attr: string;
|
|
size: string;
|
|
compressed: string;
|
|
dateTime: string;
|
|
crc: string;
|
|
method: string;
|
|
block: string;
|
|
encrypted: string;
|
|
}
|