UNPKG

@ginden/blinkstick-v2

Version:
15 lines 772 B
import { type Device } from 'node-hid'; import { BlinkstickAsync } from '../../../core/versions/blinkstick.async'; export type MinimalDevice = Pick<Device, 'vendorId' | 'productId' | 'path' | 'serialNumber' | 'manufacturer' | 'product'>; /** * @summary This function creates a BlinkstickAsync instance from a USB device. * @remarks It also registers the BlinkStick object in a FinalizationRegistry to increase the 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