Answer the question
In order to leave comments, you need to log in
How to do it in Typescript?
Vue 3.0 has already "released" and I want to use typescript, but here's the problem - ref types
in the figure show problem areas.
found, like this, but (did not understand how, with the help of the code I can solve the problem)
interface Ref<T> {
value: T
}
function ref<T>(value: T): Ref<T>
Answer the question
In order to leave comments, you need to log in
In addition to the comment, I can say that it is better to write like thislist['value'].push()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question