mirror of
https://github.com/freqtrade/frequi.git
synced 2024-09-20 01:21:08 +00:00
chore: convert backtestResultChart props to type-based
This commit is contained in:
parent
f810ec8588
commit
739569217e
|
@ -3,14 +3,14 @@ import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
|
|
||||||
import { ChartSliderPosition, Trade } from '@/types';
|
import { ChartSliderPosition, Trade } from '@/types';
|
||||||
|
|
||||||
defineProps({
|
defineProps<{
|
||||||
timeframe: { required: true, type: String },
|
timeframe: string;
|
||||||
strategy: { required: true, type: String },
|
strategy: string;
|
||||||
freqaiModel: { required: false, default: undefined, type: String },
|
freqaiModel?: string;
|
||||||
timerange: { required: true, type: String },
|
timerange: string;
|
||||||
pairlist: { required: true, type: Array as () => string[] },
|
pairlist: string[];
|
||||||
trades: { required: true, type: Array as () => Trade[] },
|
trades: Trade[];
|
||||||
});
|
}>();
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
const isBarVisible = ref({ right: true, left: true });
|
const isBarVisible = ref({ right: true, left: true });
|
||||||
const sliderPosition = ref<ChartSliderPosition>();
|
const sliderPosition = ref<ChartSliderPosition>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user