Skip to content

Commit

Permalink
feat: on('error' in type (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
everhardt authored Sep 26, 2023
1 parent ac78f25 commit b57f338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ModbusRTU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class ModbusRTU {
writeRegisters(dataAddress: number, values: Array<number> | Buffer): Promise<WriteMultipleResult>; // 16

on(event: 'close', listener: () => unknown): this;
on(event: 'error', listener: (error: unknown) => unknown): this;
readDeviceIdentification(deviceIdCode: number, objectId: number): Promise<ReadDeviceIdentificationResult>;
reportServerID(deviceIdCode: number): Promise<ReportServerIDResult>;

Expand Down

0 comments on commit b57f338

Please sign in to comment.