diff --git a/api/@ohos.arkui.StateManagement.d.ts b/api/@ohos.arkui.StateManagement.d.ts index 20146f741612703b3043d6d0660f57ad8ddffe87..7cfc272a72d05036747ce2d00213f561b9ebb9c8 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