From e37d9fc8c01e2aaca299f6a14e5fe95795154b21 Mon Sep 17 00:00:00 2001 From: chenbenzhi Date: Mon, 9 Jun 2025 07:50:38 +0000 Subject: [PATCH] =?UTF-8?q?update=20api/@ohos.arkui.StateManagement.d.ts.?= =?UTF-8?q?=20API18=E6=94=B9=E6=88=90API19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenbenzhi --- api/@ohos.arkui.StateManagement.d.ts | 95 ++++++++++++++-------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/api/@ohos.arkui.StateManagement.d.ts b/api/@ohos.arkui.StateManagement.d.ts index 20146f741..7cfc272a7 100644 --- a/api/@ohos.arkui.StateManagement.d.ts +++ b/api/@ohos.arkui.StateManagement.d.ts @@ -51,6 +51,51 @@ export interface TypeConstructorWithArgs { new(...args: any): T; } +/** + * Define ConnectOptions class. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 18 + */ +export class ConnectOptions { + + /** + * @type { TypeConstructorWithArgs } type class type of the stored value. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 18 + */ + type: TypeConstructorWithArgs; + + /** + * Defines alias name of the key, or the function generating the default value. + * @type { ?string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 18 + */ + key?: string; + /** + * Define the function generating the default value. + * @type { ?StorageDefaultCreator} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 18 + */ + defaultCreator?: StorageDefaultCreator; + + /** + * Define encrypted partition for data storage. + * if not passed in, the defaule value is El2 + * + * @type { ?contextConstant.AreaMode} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 18 + */ + areaMode?: contextConstant.AreaMode; +} + /** * AppStorageV2 is for UI state of app-wide access, has same life cycle as the app, * and saves database content only in memory. @@ -327,7 +372,7 @@ export declare class UIUtils { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since 19 */ static makeV1Observed(source: T): T; @@ -340,7 +385,7 @@ export declare class UIUtils { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since 19 */ static enableV2Compatibility(source: T): T; @@ -385,50 +430,4 @@ export declare class UIUtils { * @since 20 */ static makeBinding(getter: GetterCallback, setter: SetterCallback): MutableBinding; -} - - -/** - * Define ConnectOptions class. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ -export class ConnectOptions { - - /** - * @type { TypeConstructorWithArgs } type class type of the stored value. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ - type: TypeConstructorWithArgs; - - /** - * Defines alias name of the key, or the function generating the default value. - * @type { ?string } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ - key?: string; - /** - * Define the function generating the default value. - * @type { ?StorageDefaultCreator} - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ - defaultCreator?: StorageDefaultCreator; - - /** - * Define encrypted partition for data storage. - * if not passed in, the defaule value is El2 - * - * @type { ?contextConstant.AreaMode} - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ - areaMode?: contextConstant.AreaMode; } \ No newline at end of file -- Gitee