UNPKG

@bubuzi/serialport

Version:

Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!

9 lines (8 loc) 546 B
import { ErrorCallback, OpenOptions, SerialPortStream } from '@serialport/stream'; import { MockBindingInterface } from '@serialport/binding-mock'; export type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>; export declare class SerialPortMock extends SerialPortStream<MockBindingInterface> { static list: () => Promise<import("@serialport/bindings-interface").PortInfo[]>; static readonly binding: MockBindingInterface; constructor(options: SerialPortMockOpenOptions, openCallback?: ErrorCallback); }