Skip to content

Commit

Permalink
Make socket and socketopts optional (#531)
Browse files Browse the repository at this point in the history
Signed-off-by: Yaacov Zamir <[email protected]>
  • Loading branch information
yaacov authored Nov 27, 2023
1 parent 60825b6 commit b61472f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModbusRTU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b61472f

Please sign in to comment.