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