From 36d8264cc735895076853b27426a3b516b140573 Mon Sep 17 00:00:00 2001 From: Ekaterina Zaytseva Date: Tue, 8 Jul 2025 15:58:50 +0300 Subject: [PATCH] [ArkTS][Sdk] @ohos.xml, json - number Issue: #ICJIV0 Signed-off-by: Ekaterina Zaytseva --- api/@ohos.util.json.d.ts | 6 +++--- api/@ohos.xml.d.ts | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/@ohos.util.json.d.ts b/api/@ohos.util.json.d.ts index c2722751f1..1f01a71ebf 100644 --- a/api/@ohos.util.json.d.ts +++ b/api/@ohos.util.json.d.ts @@ -109,9 +109,9 @@ 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 { Transformer | ((number | string)[]) | null } [replacer] - An array of strings and numbers that acts as an approved list + * @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 | number } [space] - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + * @param { string | int } [space] - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. * @returns { string } Return a JSON text. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -119,7 +119,7 @@ declare namespace json { * @since 20 * @arkts 1.2 */ - function stringify(value: NullishType, replacer?: Transformer | ((number | string)[]) | null, space?: string | number): string; + function stringify(value: NullishType, 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/@ohos.xml.d.ts b/api/@ohos.xml.d.ts index 90f0e6f8e7..c570cba5a5 100644 --- a/api/@ohos.xml.d.ts +++ b/api/@ohos.xml.d.ts @@ -988,14 +988,14 @@ declare namespace xml { /** * Obtains the current column number, starting from 1. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Utils.Lang * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getColumnNumber(): number; + getColumnNumber(): int; /** * The current depth of the element. * @@ -1014,14 +1014,14 @@ declare namespace xml { /** * Obtains the depth of this element. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Utils.Lang * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getDepth(): number; + getDepth(): int; /** * The current line number, starting from 1. * @@ -1040,14 +1040,14 @@ declare namespace xml { /** * Obtains the current line number, starting from 1. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Utils.Lang * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getLineNumber(): number; + getLineNumber(): int; /** * The current element's name. * @@ -1222,14 +1222,14 @@ declare namespace xml { /** * Obtains the number of attributes for the current start tag. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Utils.Lang * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getAttributeCount(): number; + getAttributeCount(): int; } /** -- Gitee