diff --git a/src/components/GameInputForm.vue b/src/components/GameInputForm.vue index 44644da..09cc310 100644 --- a/src/components/GameInputForm.vue +++ b/src/components/GameInputForm.vue @@ -2,7 +2,7 @@ import { Footsteps } from '@vicons/ionicons5' import { ContactMailRound } from '@vicons/material' import { Icon } from '@vicons/utils' -import { type PropType, ref } from 'vue' +import { ref } from 'vue' import BeltBlock from './BeltBlock.vue' import HeaderText from './HeaderText.vue' @@ -10,24 +10,12 @@ import MetalPlate from './MetalPlate.vue' const code = ref('') -const props = defineProps({ - addAction: { - type: Function as PropType<(param: string) => void>, - required: true, - }, - allPlacesCount: { - type: Number, - required: true, - }, - newPlacesCount: { - type: Number, - required: true, - }, - gameStatus: { - type: String, - required: true, - }, -}) +const props = defineProps<{ + addAction: (param: string) => void + allPlacesCount: number + newPlacesCount: number + gameStatus: string +}>() async function addClickButton() { await props.addAction(code.value)