From ef73962ad74d9ecb9d8d80dbbc1b2c2d89511503 Mon Sep 17 00:00:00 2001 From: "shixia.ly" Date: Thu, 19 Sep 2024 17:26:11 +0800 Subject: [PATCH] fix: add export type --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6cbf7d1c..b56b152a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,7 +43,7 @@ export { // HttpClient2 is keep compatible with urllib@2 HttpClient2 export { HttpClient, HttpClient as HttpClient2, HEADER_USER_AGENT as USER_AGENT, - RequestDiagnosticsMessage, ResponseDiagnosticsMessage, + RequestDiagnosticsMessage, ResponseDiagnosticsMessage, ClientOptions, } from './HttpClient.js'; // RequestOptions2 is keep compatible with urllib@2 RequestOptions2 export { @@ -51,6 +51,8 @@ export { FixJSONCtlCharsHandler, FixJSONCtlChars, } from './Request.js'; +export { CheckAddressFunction } from './HttpAgent.js'; + export { SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse, } from './Response.js';