Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(device: HID.HID) {
super();
this.device = device;
// $FlowFixMe
const info = device.getDeviceInfo();
this.deviceModel =
info && info.product ? identifyProductName(info.product) : null;
}