Installation
npm install --save @types/etherport-client
Summary
This package contains type definitions for etherport-client (https://github.com/mwittig/etherport-client/tree/master).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/etherport-client.
index.d.ts
/// <reference types="node"/>
import type { EventEmitter } from "node:events";
import type { Duplex } from "node:stream";
export interface EtherPortClientConstructorArgs {
host: string;
port: number;
reconnectTimeout?: number;
}
// tslint:disable-next-line:no-unnecessary-class
export class EtherPortClient extends EventEmitter {
path: string;
name: string;
host: string;
port: number;
constructor(options: EtherPortClientConstructorArgs);
}
export function chainSerialPorts(clientPort: EtherPortClient, serverPort: Duplex): void;
Additional Details
- Last updated: Wed, 22 Nov 2023 01:02:40 GMT
- Dependencies: @types/node
Credits
These definitions were written by Andréas HANSS.