File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
import { EventDispatcher , TypedDispatcher } from "./dispatcher" ;
27
27
import { USBAdapter , adapter } from "./adapter" ;
28
28
import { W3CUSBConnectionEvent } from "./events" ;
29
- import { USBDevice } from "./device" ;
30
29
import { W3CUSB } from "./interfaces" ;
30
+ import { USBDevice as Device } from "./device" ;
31
31
32
32
/**
33
33
* USB Options
@@ -58,7 +58,7 @@ export interface USBEvents {
58
58
*/
59
59
export class USB extends ( EventDispatcher as new ( ) => TypedDispatcher < USBEvents > ) implements W3CUSB {
60
60
61
- private allowedDevices : Array < USBDevice > = [ ] ;
61
+ private allowedDevices : Array < Device > = [ ] ;
62
62
private devicesFound : ( devices : Array < USBDevice > ) => Promise < USBDevice | void > ;
63
63
64
64
private _onconnect : ( ev : USBConnectionEvent ) => void ;
@@ -144,7 +144,7 @@ export class USB extends (EventDispatcher as new() => TypedDispatcher<USBEvents>
144
144
} ) ;
145
145
}
146
146
147
- private replaceAllowedDevice ( device : USBDevice ) : boolean {
147
+ private replaceAllowedDevice ( device : Device ) : boolean {
148
148
for ( const i in this . allowedDevices ) {
149
149
if ( this . isSameDevice ( device , this . allowedDevices [ i ] ) ) {
150
150
this . allowedDevices [ i ] = device ;
You can’t perform that action at this time.
0 commit comments