mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 04:55:15 +00:00
Use shorthand syntax for Array type definitions
This commit is contained in:
parent
e8aa806901
commit
01c7c67925
|
@ -28,7 +28,7 @@ const CHART_TRADE_COUNT = 'Trade Count';
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class HourlyChart extends Vue {
|
export default class HourlyChart extends Vue {
|
||||||
@Prop({ required: true }) trades!: Array<Trade>;
|
@Prop({ required: true }) trades!: Trade[];
|
||||||
|
|
||||||
get hourlyData() {
|
get hourlyData() {
|
||||||
const res = new Array(24);
|
const res = new Array(24);
|
||||||
|
|
|
@ -77,11 +77,11 @@ export default class FTBotAPIPairList extends Vue {
|
||||||
|
|
||||||
@ftbot.Action addBlacklist!: (payload: BlacklistPayload) => Promise<BlacklistResponse>;
|
@ftbot.Action addBlacklist!: (payload: BlacklistPayload) => Promise<BlacklistResponse>;
|
||||||
|
|
||||||
@ftbot.State whitelist!: Array<string>;
|
@ftbot.State whitelist!: string[];
|
||||||
|
|
||||||
@ftbot.State blacklist!: Array<string>;
|
@ftbot.State blacklist!: string[];
|
||||||
|
|
||||||
@ftbot.State pairlistMethods!: Array<string>;
|
@ftbot.State pairlistMethods!: string[];
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.initBlacklist();
|
this.initBlacklist();
|
||||||
|
|
|
@ -16,7 +16,7 @@ const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
@Component({})
|
@Component({})
|
||||||
export default class LogViewer extends Vue {
|
export default class LogViewer extends Vue {
|
||||||
@ftbot.State lastLogs!: Array<Logs>;
|
@ftbot.State lastLogs!: Logs[];
|
||||||
|
|
||||||
@ftbot.Action getLogs;
|
@ftbot.Action getLogs;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
@Component({})
|
@Component({})
|
||||||
export default class Performance extends Vue {
|
export default class Performance extends Vue {
|
||||||
@ftbot.State performanceStats!: Array<PerformanceEntry>;
|
@ftbot.State performanceStats!: PerformanceEntry[];
|
||||||
|
|
||||||
private tableFields = [
|
private tableFields = [
|
||||||
{ key: 'pair', label: 'Pair' },
|
{ key: 'pair', label: 'Pair' },
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default class TradeList extends Vue {
|
||||||
|
|
||||||
perPage = this.activeTrades ? 200 : 15;
|
perPage = this.activeTrades ? 200 : 15;
|
||||||
|
|
||||||
tableFields: Array<Record<string, string | Function>> = [
|
tableFields: Record<string, string | Function>[] = [
|
||||||
{ key: 'trade_id', label: 'ID' },
|
{ key: 'trade_id', label: 'ID' },
|
||||||
{ key: 'pair', label: 'Pair' },
|
{ key: 'pair', label: 'Pair' },
|
||||||
{ key: 'amount', label: 'Amount' },
|
{ key: 'amount', label: 'Amount' },
|
||||||
|
|
|
@ -26,7 +26,7 @@ const ftbot = namespace('ftbot');
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class Trading extends Vue {
|
export default class Trading extends Vue {
|
||||||
@ftbot.Getter closedTrades!: Array<Trade>;
|
@ftbot.Getter closedTrades!: Trade[];
|
||||||
|
|
||||||
@ftbot.State dailyStats!: DailyReturnValue;
|
@ftbot.State dailyStats!: DailyReturnValue;
|
||||||
|
|
||||||
|
|
|
@ -100,9 +100,9 @@ const ftbot = namespace('ftbot');
|
||||||
export default class Trading extends Vue {
|
export default class Trading extends Vue {
|
||||||
@ftbot.State detailTradeId!: string;
|
@ftbot.State detailTradeId!: string;
|
||||||
|
|
||||||
@ftbot.Getter openTrades!: Array<Trade>;
|
@ftbot.Getter openTrades!: Trade[];
|
||||||
|
|
||||||
@ftbot.Getter closedTrades!: Array<Trade>;
|
@ftbot.Getter closedTrades!: Trade[];
|
||||||
|
|
||||||
@ftbot.Getter [UserStoreGetters.tradeDetail]!: Trade;
|
@ftbot.Getter [UserStoreGetters.tradeDetail]!: Trade;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user