refactor: exchangeSelect -> typescript definition

This commit is contained in:
Matthias 2024-09-16 06:59:19 +02:00
parent 67d2d3f434
commit 5868a8775b

View File

@ -1,12 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { useBotStore } from '@/stores/ftbotwrapper'; import { useBotStore } from '@/stores/ftbotwrapper';
import { ExchangeSelection } from '@/types'; import type { ExchangeSelection } from '@/types';
const exchangeModel = defineModel<ExchangeSelection>({ required: true });
const exchangeModel = defineModel({
type: Object as () => ExchangeSelection,
required: true,
});
const botStore = useBotStore(); const botStore = useBotStore();
const exchangeList = computed(() => { const exchangeList = computed(() => {