From b57f3388d22596409fed8c6411f384fbaed0c933 Mon Sep 17 00:00:00 2001 From: everhardt Date: Tue, 26 Sep 2023 17:32:21 +0200 Subject: [PATCH] feat: on('error' in type (#516) --- ModbusRTU.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ModbusRTU.d.ts b/ModbusRTU.d.ts index 02c682e..b14a087 100644 --- a/ModbusRTU.d.ts +++ b/ModbusRTU.d.ts @@ -66,6 +66,7 @@ export class ModbusRTU { writeRegisters(dataAddress: number, values: Array | Buffer): Promise; // 16 on(event: 'close', listener: () => unknown): this; + on(event: 'error', listener: (error: unknown) => unknown): this; readDeviceIdentification(deviceIdCode: number, objectId: number): Promise; reportServerID(deviceIdCode: number): Promise;