【分布式对象】补充标签

Signed-off-by: huangxiyong <huangxiyong@huawei.com>
This commit is contained in:
huangxiyong 2024-07-18 15:45:54 +08:00
parent f06894b487
commit 8b613dad2b
2 changed files with 9 additions and 2 deletions

View File

@ -173,6 +173,7 @@ declare namespace commonType {
/**
* Indicates several assets
*
* @typedef { Array<Asset> }
* @syscap SystemCapability.DistributedDataManager.CommonType
* @crossplatform
* @since 11
@ -182,6 +183,7 @@ declare namespace commonType {
/**
* Indicates possible value types.
*
* @typedef { null | number | string | boolean | Uint8Array | Asset | Assets }
* @syscap SystemCapability.DistributedDataManager.CommonType
* @crossplatform
* @since 11
@ -191,6 +193,7 @@ declare namespace commonType {
/**
* Values in buckets are stored in key-value pairs.
*
* @typedef { Record<string, ValueType> }
* @syscap SystemCapability.DistributedDataManager.CommonType
* @crossplatform
* @since 11

View File

@ -131,6 +131,7 @@ declare namespace distributedDataObject {
/**
* sessionId of saved object
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 9
*/
@ -139,6 +140,7 @@ declare namespace distributedDataObject {
/**
* version of saved object, can compare with DistributedObject.__version
*
* @type { number }
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 9
*/
@ -149,6 +151,7 @@ declare namespace distributedDataObject {
* data is "local", means save in local device
* otherwise, means the deviceId of others device
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 9
*/
@ -167,6 +170,7 @@ declare namespace distributedDataObject {
/**
* The sessionId of the changed object.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 9
*/
@ -299,7 +303,7 @@ declare namespace distributedDataObject {
* @param {AsyncCallback<void>} callback - The callback of setSessionId.
* @throws {BusinessError} 201 - Permission verification failed.
* @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types;
* 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length.
* 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length.
* @throws {BusinessError} 15400001 - Create table failed.
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 12
@ -339,7 +343,7 @@ declare namespace distributedDataObject {
* @returns {Promise<void>} - The promise returned by the function.
* @throws {BusinessError} 201 - Permission verification failed.
* @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types;
* 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length.
* 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length.
* @throws {BusinessError} 15400001 - Create table failed.
* @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject
* @since 12