chore(types): remove unnecessary type assertion (#12563)

This commit is contained in:
webfansplz 2022-07-04 11:25:59 +08:00 committed by GitHub
parent 86fb6bd151
commit ff2d52f7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@ function doWatch(
} else if (isFunction(source)) {
if (cb) {
// getter with cb
getter = () => call(source as Function, WATCHER_GETTER)
getter = () => call(source, WATCHER_GETTER)
} else {
// no cb -> simple effect
getter = () => {
@ -231,7 +231,7 @@ function doWatch(
if (cleanup) {
cleanup()
}
return call(source as Function, WATCHER, [onCleanup])
return call(source, WATCHER, [onCleanup])
}
}
} else {