Skip to content

Commit 2655feb

Browse files
committed
fix: typescript compile error
Fixes #1746
1 parent b094142 commit 2655feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export type GenericCallback<T> = (error?: Error, result?: T) => void
1010
export type VoidCallback = () => void
1111

1212
export type IStream = Duplex & {
13-
socket?: WebSocket
13+
/** only set on browsers, it's a [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) */
14+
socket?: any
1415
}
1516

1617
export type StreamBuilder = (

0 commit comments

Comments
 (0)