From ff2d52f7ac45da410e0872a36bee807515e5219c Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Mon, 4 Jul 2022 11:25:59 +0800 Subject: [PATCH] chore(types): remove unnecessary type assertion (#12563) --- src/v3/apiWatch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v3/apiWatch.ts b/src/v3/apiWatch.ts index 4d387dc1..e1d7d018 100644 --- a/src/v3/apiWatch.ts +++ b/src/v3/apiWatch.ts @@ -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 {