-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02478dd
commit b4e2019
Showing
5 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
11 changes: 4 additions & 7 deletions
11
...ernal/usb/model/AccessibleUsbHidDevice.ts → ...rc/internal/usb/model/DiscoveredDevice.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { DeviceId, DeviceModel } from "../../device/model/DeviceModel"; | ||
|
||
// TODO: export type ScannedDevice; | ||
// DiscoveredDevice | ||
export type AccessibleUsbHidDevice = { | ||
/** | ||
* Represents a discovered/scanned (not yet connected to) device. | ||
*/ | ||
export type DiscoveredDevice = { | ||
// type: "web-hid", // "node-hid" in the future -> no need as we will only have 1 USB transport implementation running | ||
id: DeviceId, // UUID to map with the associated transport device | ||
deviceModel: DeviceModel, | ||
|
||
// TODO: actually not necessary | ||
// Informs if the device was selected (in the case of WebHID) during the discovery | ||
// isSelected: boolean, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters