From b61472f85fe93cccc06b3ef173f4b4a7ff38f5aa Mon Sep 17 00:00:00 2001 From: Yaacov Zamir Date: Mon, 27 Nov 2023 10:22:47 +0200 Subject: [PATCH] Make socket and socketopts optional (#531) Signed-off-by: Yaacov Zamir --- ModbusRTU.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ModbusRTU.d.ts b/ModbusRTU.d.ts index 073661d..fd445e3 100644 --- a/ModbusRTU.d.ts +++ b/ModbusRTU.d.ts @@ -139,8 +139,8 @@ export interface TcpPortOptions extends TcpSocketConnectOpts { family?: number; ip?: string; timeout?: number; - socket: Socket; - socketOpts: SocketConstructorOpts; + socket?: Socket; + socketOpts?: SocketConstructorOpts; } export interface UdpPortOptions {