As you can see, I'm trying to use a long-hand version of v-model by manually providing value and manually updating it on changes.
It should be clear to TS from here that my model is of type 0 | 1 | 2, and that tabIndex in the callback should also have 0 | 1 | 2 type so that I can do two-way binding. However, because of the way typings are defined in Vuetify, this isn't happening.
Problem to solve
As you can see, I'm trying to use a long-hand version of v-model by manually providing value and manually updating it on changes.
It should be clear to TS from here that my model is of type
0 | 1 | 2
, and thattabIndex
in the callback should also have0 | 1 | 2
type so that I can do two-way binding. However, because of the way typings are defined in Vuetify, this isn't happening.Proposed solution
This patch for v3.3.2 works for me: