Subscribe on changes!

defineProps with extended interface not working

avatar
Mar 7th 2022

Version

3.2.31

Reproduction link

stackblitz.com

Steps to reproduce

Create a component in SFC mode and use defineProps with an extended interface, properties are not working

<script setup lang="ts">
interface Example {
   description: string
}

interface Props extends Example {}

defineProps<Props>()
</script>

<template>
   <p>{{ description }}</p> <!-- the description is undefined -->
</template>

What is expected?

That the definition of properties have this support

What is actually happening?

defineProps with extended interface not working