From a58ccf355bee0e664880554bd082a7be49d1f622 Mon Sep 17 00:00:00 2001 From: zhangboren Date: Wed, 27 Aug 2025 10:46:26 +0800 Subject: [PATCH] ArkTS1.2 state management number mitigation. Signed-off-by: zhangboren --- api/arkui/stateManagement/decorator.static.d.ets | 4 ++-- api/arkui/stateManagement/storage/environment.static.d.ets | 4 ++-- api/arkui/stateManagement/storage/localStorage.static.d.ets | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/arkui/stateManagement/decorator.static.d.ets b/api/arkui/stateManagement/decorator.static.d.ets index 11bdf1cccb..dd26352b8a 100644 --- a/api/arkui/stateManagement/decorator.static.d.ets +++ b/api/arkui/stateManagement/decorator.static.d.ets @@ -791,12 +791,12 @@ export declare interface IObserve { /** * Rendering component. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - readonly renderingComponent: number; + readonly renderingComponent: int; /** * Rendering component id. * diff --git a/api/arkui/stateManagement/storage/environment.static.d.ets b/api/arkui/stateManagement/storage/environment.static.d.ets index fd11a44bf7..1cc87711a2 100644 --- a/api/arkui/stateManagement/storage/environment.static.d.ets +++ b/api/arkui/stateManagement/storage/environment.static.d.ets @@ -41,11 +41,11 @@ export declare interface EnvPropsOptions { /** * DefaultValue is the default value if cannot get the environment property value * - * @type { number | string | boolean } + * @type { int | long | double | string | boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - defaultValue: number | string | boolean; + defaultValue: int | long | double | string | boolean; } /** diff --git a/api/arkui/stateManagement/storage/localStorage.static.d.ets b/api/arkui/stateManagement/storage/localStorage.static.d.ets index a77b32ff0e..137975a4ac 100644 --- a/api/arkui/stateManagement/storage/localStorage.static.d.ets +++ b/api/arkui/stateManagement/storage/localStorage.static.d.ets @@ -149,11 +149,11 @@ export declare class LocalStorage { * Returns number of properties in LocalStorage * same as Map.prototype.size() * - * @returns { number } return number of properties + * @returns { int } return number of properties * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - public size(): number; + public size(): int; /** * Delete property from StorageBase * Use with caution: @@ -185,4 +185,4 @@ export declare class LocalStorage { * @since 20 */ public clear(): boolean; -} +} \ No newline at end of file -- Gitee