chore: add types for emit

This commit is contained in:
kolaente 2023-04-10 20:43:35 +02:00
parent cb218ec0c3
commit c56787443f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ const props = defineProps<{
canCollapse?: boolean,
level?: number,
}>()
const emit = defineEmits(['update:modelValue'])
const emit = defineEmits<{
(e: 'update:modelValue', projects: IProject[]): void
}>()
const drag = ref(false)
const dragOptions = {