From ed2fbd27f6fba34b49233f095170bdb65f301b49 Mon Sep 17 00:00:00 2001 From: fuchao Date: Sat, 29 Oct 2022 15:03:16 +0800 Subject: [PATCH] fixed 55c9d48 from https://gitee.com/fuchao0322/interface_sdk-js_1029/pulls/3219 Add throws Signed-off-by: fuchao --- api/@ohos.net.connection.d.ts | 1 + api/@ohos.net.http.d.ts | 1 + api/@ohos.net.socket.d.ts | 1 + api/@ohos.net.webSocket.d.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 84576eeee7..6ec77dc8a8 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -22,6 +22,7 @@ import socket from "./@ohos.net.socket"; * * @since 8 * @syscap SystemCapability.Communication.NetManager.Core + * @throws 9+ {BusinessError} -1 - parse param failed */ declare namespace connection { type HttpRequest = http.HttpRequest; diff --git a/api/@ohos.net.http.d.ts b/api/@ohos.net.http.d.ts index ce56e55549..de18b33e1e 100644 --- a/api/@ohos.net.http.d.ts +++ b/api/@ohos.net.http.d.ts @@ -20,6 +20,7 @@ import {AsyncCallback, Callback} from "./basic"; * * @since 6 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ {BusinessError} -1 - parse param failed */ declare namespace http { /** diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index 3fcdd5c8f9..3437d8c1c4 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -22,6 +22,7 @@ import cryptoFramework from "./@ohos.security.cryptoFramework"; * * @since 7 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ {BusinessError} -1 - parse param failed */ declare namespace socket { export import NetAddress = connection.NetAddress; diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index cbb967bee4..53b24ac2e1 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -20,6 +20,7 @@ import {AsyncCallback, ErrorCallback} from "./basic"; * * @since 6 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ {BusinessError} -1 - parse param failed */ declare namespace webSocket { /** -- Gitee