But I'm getting No overload matches this call error:
Property 'value' is missing in type '{ vModel: boolean; }' but required in type '{ value: boolean; }'
It'd be great if I could use vModel with value prop in TSX. And even better if I could change the prop name using model.prop.
Workaround for me is to remove required from the value prop. Another workaround would be to "expand" vModel manually.
I want to use my component like this:
So I did this:
But I'm getting
No overload matches this call
error:Property 'value' is missing in type '{ vModel: boolean; }' but required in type '{ value: boolean; }'
It'd be great if I could use
vModel
withvalue
prop in TSX. And even better if I could change the prop name usingmodel.prop
.Workaround for me is to remove
required
from thevalue
prop. Another workaround would be to "expand"vModel
manually.