diff --git a/src/lib/shared.ts b/src/lib/shared.ts index d10da4497..0b23c49b3 100644 --- a/src/lib/shared.ts +++ b/src/lib/shared.ts @@ -10,7 +10,8 @@ export type GenericCallback = (error?: Error, result?: T) => void export type VoidCallback = () => void export type IStream = Duplex & { - socket?: WebSocket + /** only set on browsers, it's a [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) */ + socket?: any } export type StreamBuilder = (