From 4e96d443077b1396f9d2da0ceb9a36a7a5f8bda1 Mon Sep 17 00:00:00 2001 From: zhewei Date: Tue, 6 Dec 2022 14:31:18 +0800 Subject: [PATCH] fix api Signed-off-by: zhewei --- api/@ohos.net.connection.d.ts | 1 + api/@ohos.net.socket.d.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 283d7bef59..40241dce14 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -105,6 +105,7 @@ declare namespace connection { * Checks whether the default data network is activated. * * @param callback Returns {@code true} if the default data network is activated; returns {@code false} otherwise. + * @permission ohos.permission.GET_NETWORK_INFO */ function hasDefaultNet(callback: AsyncCallback): void; function hasDefaultNet(): Promise; diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index 1f6d090abd..ecb92e0408 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -25,6 +25,11 @@ import cryptoFramework from "./@ohos.security.cryptoFramework"; */ declare namespace socket { export import NetAddress = connection.NetAddress; + /** + * Deposit certificate + * + * @since 9 + */ export type X509CertRawData = cryptoFramework.EncodingBlob; /** -- Gitee