From 2655feb7a182c53bfa5ea7321b4e1a6d5b031311 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 28 Nov 2023 18:07:58 +0100 Subject: [PATCH] fix: typescript compile error Fixes #1746 --- src/lib/shared.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = (