Skip to content

Commit ff2d52f

Browse files
authored
chore(types): remove unnecessary type assertion (#12563)
1 parent 86fb6bd commit ff2d52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/v3/apiWatch.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function doWatch(
221221
} else if (isFunction(source)) {
222222
if (cb) {
223223
// getter with cb
224-
getter = () => call(source as Function, WATCHER_GETTER)
224+
getter = () => call(source, WATCHER_GETTER)
225225
} else {
226226
// no cb -> simple effect
227227
getter = () => {
@@ -231,7 +231,7 @@ function doWatch(
231231
if (cleanup) {
232232
cleanup()
233233
}
234-
return call(source as Function, WATCHER, [onCleanup])
234+
return call(source, WATCHER, [onCleanup])
235235
}
236236
}
237237
} else {

0 commit comments

Comments
 (0)