From 8aab805c4ccc0391f4dc1de2eb29fb484f14f566 Mon Sep 17 00:00:00 2001 From: harrey Date: Fri, 18 Jul 2025 20:39:51 +0800 Subject: [PATCH] modify function parameter name to avoid reserved keywords --- api/@ohos.telephony.call.d.ts | 2 +- api/@ohos.telephony.observer.d.ts | 2 +- api/@ohos.telephony.sim.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index 2d27ed7136..c9f6ac62a8 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -4338,7 +4338,7 @@ declare namespace call { * @systemapi Hide this for inner system use. * @since 8 */ - number: string; + num: string; /** * Indicates the start time hours of call forwarding. diff --git a/api/@ohos.telephony.observer.d.ts b/api/@ohos.telephony.observer.d.ts index 8373c0c116..eb35eef243 100644 --- a/api/@ohos.telephony.observer.d.ts +++ b/api/@ohos.telephony.observer.d.ts @@ -805,7 +805,7 @@ declare namespace observer { * @syscap SystemCapability.Telephony.StateRegistry * @since 11 */ - number: string; + num: string; } /** diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 37d1de351e..15d4944c3b 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -1160,7 +1160,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - function setShowNumber(slotId: number, number: string, callback: AsyncCallback): void; + function setShowNumber(slotId: number, num: string, callback: AsyncCallback): void; /** * Set the SIM card number in the specified slot. @@ -1183,7 +1183,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - function setShowNumber(slotId: number, number: string): Promise; + function setShowNumber(slotId: number, num: string): Promise; /** * Get the SIM card number of the specified card slot. -- Gitee