Improve naming

This commit is contained in:
Matthias 2020-08-17 20:42:37 +02:00
parent 90b157b7f9
commit dceb7b5fe8
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import 'echarts/lib/component/title';
import 'echarts/lib/component/tooltip'; import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/legend'; import 'echarts/lib/component/legend';
import { DailyReturn } from '@/store/types'; import { DailyReturnValue } from '@/store/types';
// Define Column labels here to avoid typos // Define Column labels here to avoid typos
const CHART_ABS_PROFIT = 'Absolute profit'; const CHART_ABS_PROFIT = 'Absolute profit';
@ -24,7 +24,7 @@ const CHART_TRADE_COUNT = 'Trade Count';
}, },
}) })
export default class DailyChart extends Vue { export default class DailyChart extends Vue {
@Prop({ required: true }) dailyStats!: DailyReturn; @Prop({ required: true }) dailyStats!: DailyReturnValue;
get dailyChartOptions() { get dailyChartOptions() {
return { return {

View File

@ -27,7 +27,7 @@ export interface DailyRecord {
trade_count: number; trade_count: number;
} }
export interface DailyReturn { export interface DailyReturnValue {
data: Array<DailyRecord>; data: Array<DailyRecord>;
} }