Files
DefinitelyTyped/extract-zip/index.d.ts
2017-01-03 12:17:41 -08:00

22 lines
574 B
TypeScript

// Type definitions for extract-zip 1.6
// Project: https://github.com/maxogden/extract-zip
// Definitions by: Mizunashi Mana <https://github.com/mizunashi-mana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace extract {
export interface Options {
dir?: string;
defaultDirMode?: number;
defaultFileMode?: number;
onEntry?: (entry: any, zipfile: any) => void;
}
}
declare function extract(
zipPath: string,
opts: extract.Options,
cb: (err?: Error) => void,
): void;
export = extract;