mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 23:30:15 +00:00
备份恢复API格式规范整改
Signed-off-by: huaqingsimeng <qiukaiqing@huawei.com>
This commit is contained in:
parent
a8a3f8fdee
commit
5e70062e40
@ -25,7 +25,7 @@ export interface BundleVersion {
|
||||
/**
|
||||
* Indicates bundle`s version code.
|
||||
*
|
||||
* @type {number}
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.FileManagement.StorageService.Backup
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
@ -35,7 +35,7 @@ export interface BundleVersion {
|
||||
/**
|
||||
* Indicates bundle`s version name.
|
||||
*
|
||||
* @type {string}
|
||||
* @type { string }
|
||||
* @syscap SystemCapability.FileManagement.StorageService.Backup
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
|
8
api/@ohos.file.backup.d.ts
vendored
8
api/@ohos.file.backup.d.ts
vendored
@ -227,7 +227,7 @@ declare namespace backup {
|
||||
*
|
||||
* @permission ohos.permission.BACKUP
|
||||
* @param { string[] } bundlesToBackup Bundles to backup.
|
||||
* @returns { Promise<void> }
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 13600001 - IPC error
|
||||
* @throws { BusinessError } 13900001 - Operation not permitted
|
||||
* @throws { BusinessError } 13900005 - I/O error
|
||||
@ -287,7 +287,7 @@ declare namespace backup {
|
||||
* @param { number } remoteCapabilitiesFd Opened JSON file that stores remote device capabilities.
|
||||
* You can use the getLocalCapabilities method to obtain the value.
|
||||
* @param { string[] } bundlesToBackup Bundles to restore.
|
||||
* @returns { Promise<void> }
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 13600001 - IPC error
|
||||
* @throws { BusinessError } 13900001 - Operation not permitted
|
||||
* @throws { BusinessError } 13900005 - I/O error
|
||||
@ -329,7 +329,7 @@ declare namespace backup {
|
||||
* @permission ohos.permission.BACKUP
|
||||
* @param { FileMeta } fileMeta Metadata of the file to be sent. Make sure that the backup framework holds
|
||||
* this file by calling getFileHandle.
|
||||
* @returns { Promise<void> }
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 13600001 - IPC error
|
||||
* @throws { BusinessError } 13900001 - Operation not permitted
|
||||
* @throws { BusinessError } 13900020 - Invalid argument
|
||||
@ -366,7 +366,7 @@ declare namespace backup {
|
||||
* @permission ohos.permission.BACKUP
|
||||
* @param { FileMeta } fileMeta Metadata of the file to be sent. Note that all the files should come
|
||||
* from the backup procedure or the getLocalCapabilities method.
|
||||
* @returns { Promise<void> }
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 13600001 - IPC error
|
||||
* @throws { BusinessError } 13900001 - Operation not permitted
|
||||
* @throws { BusinessError } 13900020 - Invalid argument
|
||||
|
Loading…
Reference in New Issue
Block a user