mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 07:51:48 +08:00
22 lines
563 B
TypeScript
22 lines
563 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 {
|
|
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;
|