A component declared through definecomponent has a defect in type verification.
Perhaps the definition of Data does not apply to all occasions?
I tried to delete the definition of unknown. I found that ComponentPropsOptions still need to accept the generics defined by unknown. Otherwise, the required definition of props will not be recognized, resulting in the attribute being considered optional.
I have explored here for the time being and found no other problems.
A component declared through
definecomponent
has a defect in type verification.Perhaps the definition of
Data
does not apply to all occasions?I tried to delete the definition of unknown. I found that
ComponentPropsOptions
still need to accept the generics defined by unknown. Otherwise, therequired
definition of props will not be recognized, resulting in the attribute being considered optional.I have explored here for the time being and found no other problems.
https://github.com/johnsoncodehk/volar/issues/1350#issue-1248417358
https://github.com/johnsoncodehk/volar/issues/1350#issuecomment-1140293350