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;