UNPKG

shuttle-node

Version:

An npm module for interfacing with the Contour Shuttle devices in Node.js

16 lines 590 B
import { HIDDevice, HIDEvents } from '@shuttle-lib/core'; import { EventEmitter } from 'eventemitter3'; import * as HID from 'node-hid'; /** * This class wraps the node-hid.HID Device. * This translates it into the common format (@see HIDDevice) defined by @shuttle-lib/core */ export declare class NodeHIDDevice extends EventEmitter<HIDEvents> implements HIDDevice { private device; constructor(device: HID.HIDAsync); write(data: number[]): void; close(): Promise<void>; private _handleData; private _handleError; } //# sourceMappingURL=node-hid-wrapper.d.ts.map