withDefault in defineProps<Omit> is not working correctly #8448
Unanswered
hrynevychroman
asked this question in
Help/Questions
Replies: 3 comments 1 reply
-
i can't reproduce it. works fine. vue 3.3.4 |
Beta Was this translation helpful? Give feedback.
1 reply
-
не знаю, у меня работает в обоих случаях. обнови всё до последней версии. что-то у тебя там есть еще idk, in my case works fine. try to reproduce and share it |
Beta Was this translation helpful? Give feedback.
0 replies
-
can not reproduce. It works fine in the playground, see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made Props interface, which extends Omitted Props IBaseUserAvatar and added "withDefaults" to set default values, but it don't work at all (show console), but if i add this types inside without extends - everything works fine, some ideas?
Don't work at all:

Works great, but i don't want to duplicate props:

Don't look for WebStorm error, something dumb with it, i don't know what, but i think problem is not in it)

Beta Was this translation helpful? Give feedback.
All reactions