From 0b42aff272d288f693c5f0bb3d512c6a9c8a2433 Mon Sep 17 00:00:00 2001 From: igorlegalov Date: Mon, 7 Jul 2025 19:50:44 +0300 Subject: [PATCH] Remove NullishType alias Issue: https://gitee.com/open_harmony/dashboard?issue_id=ICH95I Testing: all pre-merge tests passed Co-authored-by: IvanTyulyandin Signed-off-by: igorlegalov --- api/@ohos.util.json.d.ts | 4 ++-- api/arkui/BuilderNode.d.ts | 4 ++-- api/arkui/ComponentContent.d.ts | 4 ++-- api/arkui/component/units.d.ets | 4 ++-- api/arkui/stateManagement/storage/storageProperty.d.ets | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/@ohos.util.json.d.ts b/api/@ohos.util.json.d.ts index 1f01a71ebf..39fde7e219 100644 --- a/api/@ohos.util.json.d.ts +++ b/api/@ohos.util.json.d.ts @@ -108,7 +108,7 @@ declare namespace json { /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. * - * @param { NullishType } value - A JavaScript value, usually an NullishType or array. + * @param { Any } value - A JavaScript value, usually an Any or array. * @param { Transformer | ((double | string)[]) | null } [replacer] - An array of strings and numbers that acts as an approved list * for selecting the object properties that will be stringify. * @param { string | int } [space] - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. @@ -119,7 +119,7 @@ declare namespace json { * @since 20 * @arkts 1.2 */ - function stringify(value: NullishType, replacer?: Transformer | ((double | string)[]) | null, space?: string | int): string; + function stringify(value: Any, replacer?: Transformer | ((double | string)[]) | null, space?: string | int): string; /** * Converts an ArkTS object or array into a JSON string. In the case of a container, linear containers are supported, diff --git a/api/arkui/BuilderNode.d.ts b/api/arkui/BuilderNode.d.ts index 826aee0854..ef7355242c 100644 --- a/api/arkui/BuilderNode.d.ts +++ b/api/arkui/BuilderNode.d.ts @@ -678,14 +678,14 @@ export declare class BuilderNode { /** * Reuse the BuilderNode based on the provided parameters. * - * @param { Record } [param] - Parameters for reusing BuilderNode. + * @param { Record } [param] - Parameters for reusing BuilderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.2 */ - reuse(param?: Record): void; + reuse(param?: Record): void; /** * Recycle the BuilderNode. diff --git a/api/arkui/ComponentContent.d.ts b/api/arkui/ComponentContent.d.ts index 4e74cb5209..f72b3cbd30 100644 --- a/api/arkui/ComponentContent.d.ts +++ b/api/arkui/ComponentContent.d.ts @@ -242,14 +242,14 @@ export declare class ComponentContent extends ComponentContentBas /** * Reuse the ComponentContent based on the provided parameters. * - * @param { Record } [param] - Parameters for reusing ComponentContent. + * @param { Record } [param] - Parameters for reusing ComponentContent. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.2 */ - reuse(param?: Record): void; + reuse(param?: Record): void; /** * Recycle the ComponentContent. diff --git a/api/arkui/component/units.d.ets b/api/arkui/component/units.d.ets index 4526b8f3ae..a6334dc6d7 100644 --- a/api/arkui/component/units.d.ets +++ b/api/arkui/component/units.d.ets @@ -39,7 +39,7 @@ import _window from '../../../api/@ohos.window' export type Want = _want export type Context = _context export type PixelMap = _image.PixelMap -export type ResolutionQuality = NullishType +export type ResolutionQuality = Any export type PointerStyle = _pointer.PointerStyle export type UnifiedData = _unifieddatachannel.UnifiedData export type Summary = _unifieddatachannel.Summary @@ -49,7 +49,7 @@ export type NavigationInfo = _observer.NavigationInfo export type RouterPageInfo = _observer.RouterPageInfo export type VisualEffect = _uieffect.VisualEffect export type Filter = _uieffect.Filter -export type Blender = NullishType +export type Blender = Any export type DateTimeOptions = _intl.DateTimeOptions export type WindowStatusType = _window.WindowStatusType export type SystemBarStyle = _window.SystemBarStyle diff --git a/api/arkui/stateManagement/storage/storageProperty.d.ets b/api/arkui/stateManagement/storage/storageProperty.d.ets index 191374a7e2..398e502a24 100644 --- a/api/arkui/stateManagement/storage/storageProperty.d.ets +++ b/api/arkui/stateManagement/storage/storageProperty.d.ets @@ -128,11 +128,11 @@ export interface IStorageProperties { /** * Storage value. * - * @type { NullishType } + * @type { Any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: NullishType; + value: Any; /** * Storage variable ttype. * -- Gitee