From: Evan You Date: Fri, 28 May 2021 00:58:27 +0000 (-0400) Subject: chore: type fix X-Git-Tag: v3.1.0-beta.6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ff06376ffc4900f52aaadeef98adb89265f5123;p=thirdparty%2Fvuejs%2Fcore.git chore: type fix --- diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 0e33193b20..eaa699ce7b 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -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 {