Skip to content

Commit 5183d9d

Browse files
author
tiagosiebler
committed
fix: type regression
1 parent 939c3d4 commit 5183d9d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/types/websockets/ws-general.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ export interface WSClientConfigurableOptions {
126126
wsOptions?: {
127127
protocols?: string[];
128128
agent?: any;
129-
} & Partial<WebSocket.ClientOptions | ClientRequestArgs>;
129+
} & (
130+
| Omit<Partial<WebSocket.ClientOptions>, 'agent'>
131+
| Omit<Partial<ClientRequestArgs>, 'agent'>
132+
);
130133

131134
wsUrl?: string;
132135

0 commit comments

Comments
 (0)