You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An object with attributes of union type throws ts2322 in Volar when supplied to v-model for textarea, input (and others). v-bind allows TS type annotation on attributes, clearing the error, but v-model does not. Ergo the only current workaround is to use a v-bind/@change combo where TS annotations can be used.
What problem does this feature solve?
An object with attributes of union type throws ts2322 in Volar when supplied to v-model for textarea, input (and others). v-bind allows TS type annotation on attributes, clearing the error, but v-model does not. Ergo the only current workaround is to use a v-bind/@change combo where TS annotations can be used.
Example usecase:
Template:
where arr is a MyType[]
More info: vuejs/language-tools#512
The text was updated successfully, but these errors were encountered: