Closed ThaDaVos closed 3 years ago
Duplicate of https://github.com/vuejs/vue-next/issues/4294
Ah, it didn't look to be a duplicate as it was about importing the type from an external file - while I am defining the interface inside the same file and extending a type from a external file
I defined an external interface and declare props's type with extends, then the props gone. I can't get right props value.
Version
3.2.22
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Sorry, I was not able to create a reproduction with typescript... so it's blank...
The following seems to fail when using inside the script setup
Now, when this is done inside a SFC - the prop
helloWorld
won't be required... it's even so, if you supply it, it won't even use it as prop as it stays an attribute for some reason - so, base properties seem to be ignored... why?My use-case:
What is expected?
That the properties defined in the base interface are used too
What is actually happening?
The properties in the base interface seem to be ignored
Again... sorry for not being able to supply a reproduction example as: