1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-02-17 18:42:01 +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 TrezorConnect, { UI, UI_EVENT } from 'trezor-connect';
import type { Device } from 'trezor-connect';
import * as MODAL from './constants/modal'; import * as MODAL from './constants/modal';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from './constants/TrezorConnect';
import type { import type {
ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice, ThunkAction, AsyncAction, Action, GetState, Dispatch, Device, TrezorDevice,
} from '~/flowtype'; } from '~/flowtype';
import type { State } from '../reducers/ModalReducer'; import type { State } from '../reducers/ModalReducer';

View File

@ -16,7 +16,6 @@ import { resolveAfter } from '../utils/promiseUtils';
import type { import type {
Device,
DeviceMessage, DeviceMessage,
UiMessage, UiMessage,
TransportMessage, TransportMessage,
@ -31,6 +30,7 @@ import type {
Action, Action,
ThunkAction, ThunkAction,
AsyncAction, AsyncAction,
Device,
TrezorDevice, TrezorDevice,
RouterLocationState, RouterLocationState,
} from '~/flowtype'; } from '~/flowtype';

View File

@ -6,7 +6,6 @@ import * as WALLET from './constants/wallet';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from './constants/TrezorConnect';
import * as stateUtils from '../reducers/utils'; import * as stateUtils from '../reducers/utils';
import type { Device } from 'trezor-connect';
import type import type
{ {
Account, Account,
@ -14,6 +13,7 @@ import type
Discovery, Discovery,
Token, Token,
Web3Instance, Web3Instance,
Device,
TrezorDevice, TrezorDevice,
RouterLocationState, RouterLocationState,
ThunkAction, ThunkAction,

View File

@ -2,12 +2,11 @@
import { TRANSPORT, DEVICE } from 'trezor-connect'; import { TRANSPORT, DEVICE } from 'trezor-connect';
import type { Device } from 'trezor-connect';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as WALLET from '../actions/constants/wallet'; import * as WALLET from '../actions/constants/wallet';
import { getDuplicateInstanceNumber } from './utils'; import { getDuplicateInstanceNumber } from './utils';
import type { Action, TrezorDevice } from '~/flowtype'; import type { Action, Device, TrezorDevice } from '~/flowtype';
export type State = Array<TrezorDevice>; export type State = Array<TrezorDevice>;

View File

@ -2,11 +2,10 @@
import { TRANSPORT, DEVICE, UI } from 'trezor-connect'; import { TRANSPORT, DEVICE, UI } from 'trezor-connect';
import type { Device } from 'trezor-connect';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as WALLET from '../actions/constants/wallet'; import * as WALLET from '../actions/constants/wallet';
import type { Action, TrezorDevice } from '~/flowtype'; import type { Action, Device, TrezorDevice } from '~/flowtype';
export type SelectedDevice = { export type SelectedDevice = {
id: string; // could be device path if unacquired or features.device_id id: string; // could be device path if unacquired or features.device_id