[node-hid]: add optional arguments to "devices" (#47251)

This commit is contained in:
Abdurrahman Abu-HIjleh 2020-09-03 21:27:20 +03:00 committed by GitHub
parent dd630d1e58
commit c8f5c3536f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,5 +36,5 @@ export class HID extends EventEmitter {
write(values: number[] | Buffer): number;
setNonBlocking(no_block: boolean): void;
}
export function devices(): Device[];
export function devices(vid?: number, pid?: number): Device[];
export function setDriverType(type: 'hidraw' | 'libusb'): void;