feat: use defineProps types for ChecklistSummary
This commit is contained in:
parent
9e266f1e36
commit
1dbd8b6c37
@ -30,18 +30,15 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {computed, type PropType} from 'vue'
|
||||
import {computed} from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import {getChecklistStatistics} from '@/helpers/checklistFromText'
|
||||
import type {ITask} from '@/modelTypes/ITask'
|
||||
|
||||
const props = defineProps({
|
||||
task: {
|
||||
type: Object as PropType<ITask>,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
const props = defineProps<{
|
||||
task: ITask
|
||||
}>()
|
||||
|
||||
const checklist = computed(() => getChecklistStatistics(props.task.description))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user