Answer the question
In order to leave comments, you need to log in
How to correctly rewrite the "scrolled: debounce(function (position) { ..." method to typescript?
import { debounce } from 'quasar'
export default {
methods: {
scrolled: debounce(function (position) { // ВОТ ЭТУ СТРОКУ
...
}, 200) // debounce for 200ms
}
}
scrolled(){
return debounce((position) => {
...
}, 200) // debounce for 200ms
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question