@@ -11,7 +11,6 @@ export = SevenZip;
11
11
* @param filepath {string} Path to the archive.
12
12
* @param files {string|array} Files to add.
13
13
* @param options {Object} An object of acceptable 7-zip switch options.
14
- * @param useBinary {string} binary to use.
15
14
* @param override {boolean} should binary directory change?
16
15
*
17
16
* @resolve {array} Arguments passed to the child-process.
@@ -28,29 +27,21 @@ export function createArchive(filepath: string, files: string | array, options?:
28
27
* @param filepath {string} Path to the archive.
29
28
* @param files {string|array} Files to remove.
30
29
* @param options {Object} An object of acceptable 7-zip switch options.
31
- * @param useBinary {string} binary to use.
32
30
* @param override {boolean} should binary directory change?
33
31
*
34
32
* @resolve {array} Arguments passed to the child-process.
35
33
* @reject {Error} The error as issued by 7-Zip.
36
34
*
37
35
* @returns {Promise } Promise
38
36
*/
39
- export function deleteArchive (
40
- filepath : string ,
41
- files : string | array ,
42
- options ?: object ,
43
- useBinary ?: string ,
44
- override ?: boolean
45
- ) : Promise < any > ;
37
+ export function deleteArchive ( filepath : string , files : string | array , options ?: object , override ?: boolean ) : Promise < any > ;
46
38
47
39
/**
48
40
* Extract an archive.
49
41
*
50
- * @param {string } archive Path to the archive.
42
+ * @param {string } filepath Path to the archive.
51
43
* @param {string } dest Destination.
52
44
* @param options {Object} An object of acceptable 7-zip switch options.
53
- * @param useBinary {string} binary to use.
54
45
* @param override {boolean} should binary directory change?
55
46
*
56
47
* @resolve {array} Arguments passed to the child-process.
@@ -59,13 +50,24 @@ export function deleteArchive(
59
50
*
60
51
* @returns {Promise } Promise
61
52
*/
62
- export function extractArchive (
63
- filepath : string ,
64
- dest : string | array ,
65
- options ?: object ,
66
- useBinary ?: string ,
67
- override ?: boolean
68
- ) : Promise < any > ;
53
+ export function extractArchive ( filepath : string , dest : string , options ?: object , override ?: boolean ) : Promise < any > ;
54
+
55
+ /**
56
+ * Extract only selected files from archive.
57
+ *
58
+ * @param {string } filepath Path to the archive.
59
+ * @param {string } dest Destination.
60
+ * @param {string|array } files Files in archive to extract.
61
+ * @param options {Object} An object of acceptable 7-zip switch options.
62
+ * @param override {boolean} should binary directory change?
63
+ *
64
+ * @resolve {array} Arguments passed to the child-process.
65
+ * @progress {array} Extracted files and directories.
66
+ * @reject {Error} The error as issued by 7-Zip.
67
+ *
68
+ * @returns {Promise } Promise
69
+ */
70
+ export function onlyArchive ( filepath : string , dest : string , files : string | array , options ?: object , override ?: boolean ) : Promise < any > ;
69
71
70
72
export function fullArchive ( filepath : string , files : string | array , options ?: object , useBinary ?: string , override ?: boolean ) : Promise < any > ;
71
73
export function listArchive ( filepath : string , files : string | array , options ?: object , useBinary ?: string , override ?: boolean ) : Promise < any > ;
0 commit comments