Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defineProps with extended interface not working #5539

Closed
adjonata opened this issue Mar 7, 2022 · 1 comment
Closed

defineProps with extended interface not working #5539

adjonata opened this issue Mar 7, 2022 · 1 comment

Comments

@adjonata
Copy link

adjonata commented Mar 7, 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

@posva
Copy link
Member

posva commented Mar 7, 2022

Duplicate of #4498

@posva posva closed this as completed Mar 7, 2022
@posva posva marked this as a duplicate of #4498 Mar 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants