From 95c812b6d023de921d3b0bd8ee8c0691874f85e8 Mon Sep 17 00:00:00 2001 From: liyufan Date: Tue, 6 Dec 2022 17:30:32 +0800 Subject: [PATCH] api match docs Signed-off-by: liyufan --- 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 ea1121b4d8..77c7b815bc 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 aceaa13962..44ceea9acb 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