Skip to content

Commit 1765806

Browse files
akitaSummershixia.ly
andauthored
fix: add export type (#540)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced `ClientOptions` for enhanced configuration of HTTP clients. - Added `CheckAddressFunction` for improved address validation capabilities. - **Compatibility** - Existing exports remain unchanged, ensuring compatibility with previous versions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: shixia.ly <[email protected]>
1 parent 1a67bf6 commit 1765806

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ export {
4343
// HttpClient2 is keep compatible with urllib@2 HttpClient2
4444
export {
4545
HttpClient, HttpClient as HttpClient2, HEADER_USER_AGENT as USER_AGENT,
46-
RequestDiagnosticsMessage, ResponseDiagnosticsMessage,
46+
RequestDiagnosticsMessage, ResponseDiagnosticsMessage, ClientOptions,
4747
} from './HttpClient.js';
4848
// RequestOptions2 is keep compatible with urllib@2 RequestOptions2
4949
export {
5050
RequestOptions, RequestOptions as RequestOptions2, RequestURL, HttpMethod,
5151
FixJSONCtlCharsHandler, FixJSONCtlChars,
5252
} from './Request.js';
5353

54+
export { CheckAddressFunction } from './HttpAgent.js';
55+
5456
export {
5557
SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse,
5658
} from './Response.js';

0 commit comments

Comments
 (0)