]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: type fix
authorEvan You <yyx990803@gmail.com>
Fri, 28 May 2021 00:58:27 +0000 (20:58 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 28 May 2021 00:58:27 +0000 (20:58 -0400)
packages/runtime-core/src/apiWatch.ts

index 0e33193b20a98a24302a79426460e33282fcc37c..eaa699ce7b5f087e102e4d2259949195faab97e2 100644 (file)
@@ -309,7 +309,7 @@ function doWatch(
 
   let scheduler: ReactiveEffectOptions['scheduler']
   if (flush === 'sync') {
-    scheduler = job
+    scheduler = job as any // the scheduler function gets called directly
   } else if (flush === 'post') {
     scheduler = () => queuePostRenderEffect(job, instance && instance.suspense)
   } else {