mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
Issue: #I7UZTI
Description:zlib模块decompressFile接口options参数修改为可选参数 Sig: SIG_ApplicaitonFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: zhaogan <zhaogan2@huawei.com>
This commit is contained in:
parent
91a4b66e8d
commit
dcbf92de82
53
api/@ohos.zlib.d.ts
vendored
53
api/@ohos.zlib.d.ts
vendored
@ -113,9 +113,9 @@ declare namespace zlib {
|
||||
/**
|
||||
* Compress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be compressed.
|
||||
* @param { string } outFile Indicates the path of the output compressed file.
|
||||
* @param { Options } options Indicates the options of compressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be compressed.
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of compressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -128,9 +128,9 @@ declare namespace zlib {
|
||||
/**
|
||||
* Compress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be compressed.
|
||||
* @param { string } outFile Indicates the path of the output compressed file.
|
||||
* @param { Options } options Indicates the options of compressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be compressed.
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @returns { Promise<void> } Returns the result of compressFile file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -143,9 +143,9 @@ declare namespace zlib {
|
||||
/**
|
||||
* Decompress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile Indicates the path of the output decompressed file.
|
||||
* @param { Options } options Indicates the options of decompressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -156,9 +156,9 @@ declare namespace zlib {
|
||||
/**
|
||||
* Decompress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile Indicates the path of the output decompressed file.
|
||||
* @param { Options } options Indicates the options of decompressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -172,9 +172,24 @@ declare namespace zlib {
|
||||
/**
|
||||
* Decompress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile Indicates the path of the output decompressing file.
|
||||
* @param { Options } options Indicates the options of decompressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @since 10
|
||||
*/
|
||||
function decompressFile(inFile: string, outFile: string, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Decompress the specified file.
|
||||
*
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressing file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @returns { Promise<void> } Returns the result of decompressing file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -185,9 +200,9 @@ declare namespace zlib {
|
||||
/**
|
||||
* Decompress the specified file.
|
||||
*
|
||||
* @param { string } inFile Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile Indicates the path of the output decompressing file.
|
||||
* @param { Options } options Indicates the options of decompressing file.
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressing file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @returns { Promise<void> } Returns the result of decompressing file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
@ -196,6 +211,6 @@ declare namespace zlib {
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @since 10
|
||||
*/
|
||||
function decompressFile(inFile: string, outFile: string, options: Options): Promise<void>;
|
||||
function decompressFile(inFile: string, outFile: string, options?: Options): Promise<void>;
|
||||
}
|
||||
export default zlib;
|
||||
|
Loading…
Reference in New Issue
Block a user