Upon debouncing a function in my Vue.js application, I encountered the following error message:
Type 'DebouncedFunc<(queryParams: QueryParams, page?: number) => Promise<void>>' is not assignable to type '(queryParams: QueryParams, page?: number) => Promise<void>'
As I tried to implement the debounce feature, I faced this issue.
created() {
newData = _.debounce(newData 1000)
}
Is there a solution to this problem without resorting to TS-ignore or making extensive changes?
Your input is greatly appreciated.