import SerialPort from 'serialport' ; export class Keyboard { port : SerialPort ; connect : Function ; constructor ( opts ) { this . port = new SerialPort ( opts . path , opts ) ; } send ( command ) { this . port . write ( command ) ; } }