Closed davisford closed 3 years ago
There are already some TypeScript definitions in the DefinitelyTyped repository:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/w3c-web-hid/index.d.ts
These definitions look like they were based on an earlier version of the spec, I'll put together a PR to update them.
Like title says -- would it be possible get TypeScript definitions for HIDDevice and all the interfaces, etc?
I'm embarking on writing a driver for a USB/HID device after I worked through a PoC to ensure it would work. Seems like I can read/write feature reports, and receive input reports fine with it after experimentation, and now want to build a real driver in TypeScript, but the missing type definitions are problematic. Since this is currently, mostly a Chrome only feature...I doubt Microsoft will include them in official DOM typings.