Add some types

This commit is contained in:
Matthias 2021-09-04 10:35:00 +02:00
parent 4cd0a1344a
commit a7117cae2e
4 changed files with 4 additions and 8 deletions

View File

@ -33,7 +33,7 @@ export default class BotList extends Vue {
@ftbot.Getter [MultiBotStoreGetters.selectedBot]: string; @ftbot.Getter [MultiBotStoreGetters.selectedBot]: string;
@ftbot.Getter [MultiBotStoreGetters.allIsBotOnline]; @ftbot.Getter [MultiBotStoreGetters.allIsBotOnline]: Record<string, boolean>;
@ftbot.Getter [MultiBotStoreGetters.allAvailableBots]: BotDescriptors; @ftbot.Getter [MultiBotStoreGetters.allAvailableBots]: BotDescriptors;

View File

@ -1,4 +1,4 @@
import { BotDescriptor, BotDescriptors, MultiClosedTrades } from '@/types'; import { BotDescriptor, BotDescriptors } from '@/types';
import { AxiosInstance } from 'axios'; import { AxiosInstance } from 'axios';
import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot'; import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot';

View File

@ -79,7 +79,3 @@ export interface TradeResponse {
/** Total trade count */ /** Total trade count */
total_trades: number; total_trades: number;
} }
export interface MultiClosedTrades {
[key: string]: ClosedTrade;
}

View File

@ -147,7 +147,7 @@ import {
ProfitInterface, ProfitInterface,
DailyPayload, DailyPayload,
BotState, BotState,
MultiClosedTrades, ClosedTrade,
} from '@/types'; } from '@/types';
import { BotStoreGetters } from '@/store/modules/ftbot'; import { BotStoreGetters } from '@/store/modules/ftbot';
import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper'; import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper';
@ -169,7 +169,7 @@ const layoutNs = namespace('layout');
export default class Dashboard extends Vue { export default class Dashboard extends Vue {
@ftbot.Getter closedTrades!: Trade[]; @ftbot.Getter closedTrades!: Trade[];
@ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: MultiClosedTrades; @ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: Record<string, ClosedTrade>;
@ftbot.Getter [BotStoreGetters.dailyStats]!: DailyReturnValue; @ftbot.Getter [BotStoreGetters.dailyStats]!: DailyReturnValue;