diff --git a/api/@ohos.util.json.d.ts b/api/@ohos.util.json.d.ts index c2722751f14ef0aef2718a3cba79481ea7375672..1f01a71ebf0df01be6158b8ecc400f134a410ef6 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 90f0e6f8e75c5e8b9f780a3392955d658cc585de..c570cba5a553b8746b974883b6277df443533525 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; } /**