79741208

Date: 2025-08-20 14:40:02
Score: 0.5
Natty:
Report link

Your problem is that you use the so-called 'runtime declaration' for props, when you should use the 'type-based' one. Here's the article from docs regarding this matter.

https://vuejs.org/guide/typescript/composition-api.html#typing-component-props

So to fix your issue you should refactor your component to:

<script setup lang="ts" generic="T extends ChildEntryModel">
// ...imports
const props = defineProps<{
    modelValue: T[]
}>()
</script>

https://vuejs.org/api/sfc-script-setup.html#generics

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Eduardo