mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
import Device type from 'flowtype' module
This commit is contained in:
parent
4093240af0
commit
83523cf677
@ -2,12 +2,11 @@
|
||||
|
||||
|
||||
import TrezorConnect, { UI, UI_EVENT } from 'trezor-connect';
|
||||
import type { Device } from 'trezor-connect';
|
||||
import * as MODAL from './constants/modal';
|
||||
import * as CONNECT from './constants/TrezorConnect';
|
||||
|
||||
import type {
|
||||
ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice,
|
||||
ThunkAction, AsyncAction, Action, GetState, Dispatch, Device, TrezorDevice,
|
||||
} from '~/flowtype';
|
||||
import type { State } from '../reducers/ModalReducer';
|
||||
|
||||
|
@ -16,7 +16,6 @@ import { resolveAfter } from '../utils/promiseUtils';
|
||||
|
||||
|
||||
import type {
|
||||
Device,
|
||||
DeviceMessage,
|
||||
UiMessage,
|
||||
TransportMessage,
|
||||
@ -31,6 +30,7 @@ import type {
|
||||
Action,
|
||||
ThunkAction,
|
||||
AsyncAction,
|
||||
Device,
|
||||
TrezorDevice,
|
||||
RouterLocationState,
|
||||
} from '~/flowtype';
|
||||
|
@ -6,7 +6,6 @@ import * as WALLET from './constants/wallet';
|
||||
import * as CONNECT from './constants/TrezorConnect';
|
||||
import * as stateUtils from '../reducers/utils';
|
||||
|
||||
import type { Device } from 'trezor-connect';
|
||||
import type
|
||||
{
|
||||
Account,
|
||||
@ -14,6 +13,7 @@ import type
|
||||
Discovery,
|
||||
Token,
|
||||
Web3Instance,
|
||||
Device,
|
||||
TrezorDevice,
|
||||
RouterLocationState,
|
||||
ThunkAction,
|
||||
|
@ -2,12 +2,11 @@
|
||||
|
||||
|
||||
import { TRANSPORT, DEVICE } from 'trezor-connect';
|
||||
import type { Device } from 'trezor-connect';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as WALLET from '../actions/constants/wallet';
|
||||
import { getDuplicateInstanceNumber } from './utils';
|
||||
|
||||
import type { Action, TrezorDevice } from '~/flowtype';
|
||||
import type { Action, Device, TrezorDevice } from '~/flowtype';
|
||||
|
||||
export type State = Array<TrezorDevice>;
|
||||
|
||||
|
@ -2,11 +2,10 @@
|
||||
|
||||
|
||||
import { TRANSPORT, DEVICE, UI } from 'trezor-connect';
|
||||
import type { Device } from 'trezor-connect';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as WALLET from '../actions/constants/wallet';
|
||||
|
||||
import type { Action, TrezorDevice } from '~/flowtype';
|
||||
import type { Action, Device, TrezorDevice } from '~/flowtype';
|
||||
|
||||
export type SelectedDevice = {
|
||||
id: string; // could be device path if unacquired or features.device_id
|
||||
|
Loading…
Reference in New Issue
Block a user