Open
Description
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
Following the directions for true-value
and false-value
checkboxes, the v-model
property warns of an incorrect type.
What is expected?
The true-value
and false-value
property type should influence the expected types of the v-model
property.
What is actually happening?
The v-model property is restrict to
core/packages/runtime-dom/types/jsx.d.ts
Line 474 in e340add
System Info
No response
Any additional comments?
This was first reported at vuejs/language-tools#2341. The suggested solution fixes the type error, however it then prevents utilising const toggle
as a string in the script.