$watch
callback is not strongly typed, unlike watch
which is
#6135
Labels
$watch
callback is not strongly typed, unlike watch
which is
#6135
Vue version
3.2.37
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-mfhxkx?file=src%2Fmain.ts&terminal=dev
Steps to reproduce
Setup a watcher with
this.$watch
using a function as the source.What is expected?
The callback's parameters are typed based on the source, like they were in vue2 and like they are with
watch
.What is actually happening?
The callback's parameters are typed as
any
.System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: