chore: convert backtestResultChart props to type-based

This commit is contained in:
Matthias 2024-09-14 09:11:07 +02:00
parent f810ec8588
commit 739569217e

View File

@ -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>();