diff --git a/src/components/charts/HourlyChart.vue b/src/components/charts/HourlyChart.vue index 3dea1acd..cbba0cf5 100644 --- a/src/components/charts/HourlyChart.vue +++ b/src/components/charts/HourlyChart.vue @@ -28,7 +28,7 @@ const CHART_TRADE_COUNT = 'Trade Count'; }, }) export default class HourlyChart extends Vue { - @Prop({ required: true }) trades!: Array; + @Prop({ required: true }) trades!: Trade[]; get hourlyData() { const res = new Array(24); diff --git a/src/components/ftbot/FTBotAPIPairList.vue b/src/components/ftbot/FTBotAPIPairList.vue index 7ff2341c..e124be5b 100644 --- a/src/components/ftbot/FTBotAPIPairList.vue +++ b/src/components/ftbot/FTBotAPIPairList.vue @@ -77,11 +77,11 @@ export default class FTBotAPIPairList extends Vue { @ftbot.Action addBlacklist!: (payload: BlacklistPayload) => Promise; - @ftbot.State whitelist!: Array; + @ftbot.State whitelist!: string[]; - @ftbot.State blacklist!: Array; + @ftbot.State blacklist!: string[]; - @ftbot.State pairlistMethods!: Array; + @ftbot.State pairlistMethods!: string[]; created() { this.initBlacklist(); diff --git a/src/components/ftbot/LogViewer.vue b/src/components/ftbot/LogViewer.vue index 464de223..70d28b71 100644 --- a/src/components/ftbot/LogViewer.vue +++ b/src/components/ftbot/LogViewer.vue @@ -16,7 +16,7 @@ const ftbot = namespace('ftbot'); @Component({}) export default class LogViewer extends Vue { - @ftbot.State lastLogs!: Array; + @ftbot.State lastLogs!: Logs[]; @ftbot.Action getLogs; diff --git a/src/components/ftbot/Performance.vue b/src/components/ftbot/Performance.vue index 12a9c3ac..68156059 100644 --- a/src/components/ftbot/Performance.vue +++ b/src/components/ftbot/Performance.vue @@ -16,7 +16,7 @@ const ftbot = namespace('ftbot'); @Component({}) export default class Performance extends Vue { - @ftbot.State performanceStats!: Array; + @ftbot.State performanceStats!: PerformanceEntry[]; private tableFields = [ { key: 'pair', label: 'Pair' }, diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 27f675f3..e2fdbc8f 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -78,7 +78,7 @@ export default class TradeList extends Vue { perPage = this.activeTrades ? 200 : 15; - tableFields: Array> = [ + tableFields: Record[] = [ { key: 'trade_id', label: 'ID' }, { key: 'pair', label: 'Pair' }, { key: 'amount', label: 'Amount' }, diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index f85e6763..86c9ff04 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -26,7 +26,7 @@ const ftbot = namespace('ftbot'); }, }) export default class Trading extends Vue { - @ftbot.Getter closedTrades!: Array; + @ftbot.Getter closedTrades!: Trade[]; @ftbot.State dailyStats!: DailyReturnValue; diff --git a/src/views/Trading.vue b/src/views/Trading.vue index f13c8303..bf19953e 100644 --- a/src/views/Trading.vue +++ b/src/views/Trading.vue @@ -100,9 +100,9 @@ const ftbot = namespace('ftbot'); export default class Trading extends Vue { @ftbot.State detailTradeId!: string; - @ftbot.Getter openTrades!: Array; + @ftbot.Getter openTrades!: Trade[]; - @ftbot.Getter closedTrades!: Array; + @ftbot.Getter closedTrades!: Trade[]; @ftbot.Getter [UserStoreGetters.tradeDetail]!: Trade; }