From afa2ffb8df02ba02471caf9f08c5d9686b084074 Mon Sep 17 00:00:00 2001 From: clevercong Date: Wed, 23 Mar 2022 14:29:12 +0800 Subject: [PATCH 1/2] modify comment. Signed-off-by: clevercong --- api/@ohos.net.connection.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 3ff974a755..491c670a81 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -272,9 +272,6 @@ declare namespace connection { prefixLength: number; } - /** - * @since 7 - */ export interface NetAddress { address: string; family?: number; // IPv4 = 1; IPv6 = 2, default is IPv4 -- Gitee From 3440a0279aff500a5b7351c65beb4f1b6f3b056b Mon Sep 17 00:00:00 2001 From: clevercong Date: Wed, 23 Mar 2022 14:56:09 +0800 Subject: [PATCH 2/2] update since Signed-off-by: clevercong --- api/@ohos.telephony.observer.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.telephony.observer.d.ts b/api/@ohos.telephony.observer.d.ts index 8193aca055..29d749abd6 100644 --- a/api/@ohos.telephony.observer.d.ts +++ b/api/@ohos.telephony.observer.d.ts @@ -107,6 +107,9 @@ declare namespace observer { function on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback<{ state: DataConnectState, network: RatType }>): void; + /** + * @since 7 + */ function off(type: 'cellularDataConnectionStateChange', callback?: Callback<{ state: DataConnectState, network: RatType }>): void; @@ -123,6 +126,9 @@ declare namespace observer { function on(type: 'cellularDataFlowChange', options: { slotId: number }, callback: Callback): void; + /** + * @since 7 + */ function off(type: 'cellularDataFlowChange', callback?: Callback): void; /** @@ -156,6 +162,9 @@ declare namespace observer { function on(type: 'simStateChange', callback: Callback): void; function on(type: 'simStateChange', options: { slotId: number }, callback: Callback): void; + /** + * @since 7 + */ function off(type: 'simStateChange', callback?: Callback): void; /** -- Gitee