1
0
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:
Szymon Lesisz 2018-08-17 15:24:47 +02:00
parent 4093240af0
commit 83523cf677
5 changed files with 5 additions and 8 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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,

View File

@ -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>;

View File

@ -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