forked from shravanrn/zip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZip.d.ts
More file actions
23 lines (21 loc) · 824 Bytes
/
Zip.d.ts
File metadata and controls
23 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Type definitions for Apache Cordova Zip plugin.
// Project: https://github.com/MobileChromeApps/cordova-plugin-zip
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
//
// Copyright (c) Microsoft Open Technologies, Inc.
// Licensed under the MIT license.
interface Zip {
/**
* Unzips the file to the given path
* @param fileName Absolute path to the file to unzip
* @param outputDirectory Folder to place the content
* @param callback Called with status code on fail or success
* @param progressCallback T
*/
unzip(fileName: string, outputDirectory: string, callback: (status: number) => void,
progressCallback?: (event : any) => void): void
}
declare var Zip: {
new (): Zip;
};