mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
IssueNo:#I78X2J
Description:add zip errcode Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
parent
aa8212a5b0
commit
c253c270d8
28
api/@ohos.zlib.d.ts
vendored
28
api/@ohos.zlib.d.ts
vendored
@ -153,6 +153,20 @@ declare namespace zlib {
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* 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 { 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, options: Options, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
@ -168,6 +182,20 @@ declare namespace zlib {
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
* @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, options: Options): Promise<void>;
|
||||
}
|
||||
export default zlib;
|
||||
|
Loading…
Reference in New Issue
Block a user