Skip to content

Commit

Permalink
Update type definitions (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits authored Oct 18, 2021
1 parent 4ad0643 commit 25455b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface AccountInitialState {
isAccountWatcherStarted: boolean;
isUnfunded: boolean;
status: ActionStatus | undefined;
errorString?: string;
errorString: string | undefined;
}

interface FlaggedAccount {
Expand All @@ -68,7 +68,7 @@ interface FlaggedAccount {
}

export interface FlaggedAccounts {
data: [FlaggedAccount];
data: FlaggedAccount[];
status: ActionStatus | undefined;
}

Expand All @@ -90,7 +90,7 @@ export interface MemoRequiredAccountsInitialState {
export interface KeyStoreInitialState {
keyStoreId: string;
password: string;
errorString?: string;
errorString: string | undefined;
custom?: {
[key: string]: any;
};
Expand All @@ -100,19 +100,19 @@ export interface LiquidityPoolInitialState {
data: LiquidityPoolAccountTransaction[];
hasMoreTxs?: boolean;
status: ActionStatus | undefined;
errorString?: string;
errorString: string | undefined;
}

export interface ClaimableBalancesInitialState {
data: ClaimableBalance[];
status: ActionStatus | undefined;
errorString?: string;
errorString: string | undefined;
}

export interface SendTxInitialState {
data: Horizon.TransactionResponse | null;
status: ActionStatus | undefined;
errorString?: string;
errorString: string | undefined;
}

export interface SettingsInitialState {
Expand All @@ -128,14 +128,14 @@ export interface TxHistoryInitialState {
data: Types.Payment[];
hasMoreTxs?: boolean;
isTxWatcherStarted: boolean;
errorString?: string;
errorString: string | undefined;
status: ActionStatus | undefined;
}

export interface WalletInitialState {
data: { publicKey: string } | null;
status: ActionStatus | undefined;
errorString?: string;
errorString: string | undefined;
}

export interface Store {
Expand Down

0 comments on commit 25455b2

Please sign in to comment.