@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
15 lines • 731 B
TypeScript
import { type Device } from 'node-hid';
import { BlinkstickAsync } from '../../core/blinkstick.async';
export type MinimalDevice = Pick<Device, 'vendorId' | 'productId' | 'path' | 'serialNumber' | 'manufacturer' | 'product'>;
/**
* This function creates a BlinkStick object from a USB device.
* It also registers the BlinkStick object in a FinalizationRegistry to increase chance that the device will be closed
* when the object is garbage collected.
*
* This function is unlikely to be needed by end users, but you are an adult.
*
* @param device
* @category Discovery
*/
export declare function createBlinkstickAsync(device: MinimalDevice): Promise<BlinkstickAsync>;
//# sourceMappingURL=create-blinkstick-async.d.ts.map