From b634eb53d1aa2aeecf81fc6f895f1c2108205d92 Mon Sep 17 00:00:00 2001 From: Fouckttt Date: Thu, 10 Jul 2025 10:15:02 +0800 Subject: [PATCH] KeywordAvoid Issue:https://gitee.com/openharmony/interface_sdk-js/issues/ICL1IC Signed-off-by: Fouckttt --- api/@ohos.util.json.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.util.json.d.ts b/api/@ohos.util.json.d.ts index 927eb0db21..898e62116e 100644 --- a/api/@ohos.util.json.d.ts +++ b/api/@ohos.util.json.d.ts @@ -65,9 +65,9 @@ declare namespace json { * Converts a JavaScript Object Notation (JSON) string into an Object or null. * * @param { string } text - A valid JSON string. - * @param { Type } type - A constructor or class representing the expected type of the parsed result. + * @param { Type } expectedtype - A constructor or class representing the expected type of the parsed result. * @param { Transformer } [reviver] - A function that transforms the results. - * @param {ParseOptions} options - The config of parse. + * @param {ParseOptions} [options] - The config of parse. * @returns { T | null | undefined } Return an Object, array, string, number, boolean, undefined, or null value corresponding to JSON text. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -75,7 +75,7 @@ declare namespace json { * @since 20 * @arkts 1.2 */ - function parse(text: string, type: Type, reviver?: Transformer, options?: ParseOptions): T | null | undefined; + function parse(text: string, expectedtype: Type, reviver?: Transformer, options?: ParseOptions): T | null | undefined; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. -- Gitee