Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update type definitions #354

Merged
merged 1 commit into from
Oct 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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