@xkeys-lib/core
Version:
NPM package to interact with the X-keys panels
14 lines • 574 B
TypeScript
/// <reference types="node" />
/**
* The expected interface for a HIDDevice.
* This is to be implemented by any wrapping libraries to translate their platform specific devices into a common and simpler form
*/
export interface HIDDevice {
on(event: 'error', handler: (data: any) => void): this;
on(event: 'data', handler: (data: Buffer) => void): this;
write(data: number[]): void;
/** Returns a promise which settles when all writes has completed */
flush(): Promise<void>;
close(): Promise<void>;
}
//# sourceMappingURL=genericHIDDevice.d.ts.map