Fix transport type

This commit is contained in:
Aleksander Rem 2022-09-28 18:50:47 +02:00
commit 0a813cf639

View file

@ -69,7 +69,7 @@ export class LedgerService {
supportsUSB = false;
transportMode: 'U2F' | 'USB' | 'HID' | 'Bluetooth' = 'U2F';
DynamicTransport = TransportU2F as typeof Transport;
DynamicTransport: typeof TransportUSB | typeof TransportHID | typeof TransportU2F = TransportU2F;
ledgerStatus$: Subject<{ status: string, statusText: string }> = new Subject();
desktopMessage$ = new Subject();