Skip to content

Commit

Permalink
add ts define of isOpen property (yaacov#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexray-newbee authored and yaacov committed May 19, 2019
1 parent bc11a54 commit a3a0718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ModbusRTU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export class ModbusRTU {
writeCoils(dataAddress: number, states: Array<boolean>): Promise<WriteMultipleResult>;
writeRegister(dataAddress: number, value: number): Promise<WriteRegisterResult>;
writeRegisters(dataAddress: number, values: Array<number>): Promise<WriteMultipleResult>; // 16

isOpen: boolean;
}

export interface NodeStyleCallback<T> {
Expand Down Expand Up @@ -109,4 +111,4 @@ export interface TelnetPortOptions {

export interface C701PortOptions {
port?: number;
}
}

0 comments on commit a3a0718

Please sign in to comment.