If defineProps's type uses vue's `Component` it will result in an incorrect type after compilation
Vue version
latest
Link to minimal reproduction
Steps to reproduce
Look at the js panel, you can see the as
prop's type is null
What is expected?
The type is correct or the prop contains skipCheck: true
What is actually happening?
type is null
System Info
No response
Any additional comments?
For more info refer https://github.com/radix-vue/shadcn-vue/issues/187
Looks to be right to me, because component can be many things, the generated runtime type
is null
, that's expected and intended.
The type is correct or the prop contains
skipCheck: true
Not sure what you mean by this, where wouldskipCheck
come from?
Not sure what you mean by this, where would
skipCheck
come from?
Sorry I still don't understand what's the issue,
null
should not have any check done.
Thank you I understand. At first I thought the null type was incorrect. cc @zernonia
Just to confirm, here's an example of null
without any warning or error