]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(types): remove unnecessary type assertions (#7032)
authorwebfansplz <308241863@qq.com>
Mon, 14 Nov 2022 06:44:06 +0000 (14:44 +0800)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 06:44:06 +0000 (01:44 -0500)
packages/runtime-core/src/apiWatch.ts

index 4999e11f0c94820d5e5ca2f1907d6f49840d42ed..ce13f0bb80531902a4d463b5c2bd211086f48e23 100644 (file)
@@ -93,9 +93,7 @@ export function watchPostEffect(
   return doWatch(
     effect,
     null,
-    (__DEV__
-      ? { ...options, flush: 'post' }
-      : { flush: 'post' }) as WatchOptionsBase
+    __DEV__ ? { ...options, flush: 'post' } : { flush: 'post' }
   )
 }
 
@@ -106,9 +104,7 @@ export function watchSyncEffect(
   return doWatch(
     effect,
     null,
-    (__DEV__
-      ? { ...options, flush: 'sync' }
-      : { flush: 'sync' }) as WatchOptionsBase
+    __DEV__ ? { ...options, flush: 'sync' } : { flush: 'sync' }
   )
 }