mirror of https://github.com/vuejs/core.git
chore: type fix
This commit is contained in:
parent
03a7a73148
commit
1ff06376ff
|
@ -309,7 +309,7 @@ function doWatch(
|
||||||
|
|
||||||
let scheduler: ReactiveEffectOptions['scheduler']
|
let scheduler: ReactiveEffectOptions['scheduler']
|
||||||
if (flush === 'sync') {
|
if (flush === 'sync') {
|
||||||
scheduler = job
|
scheduler = job as any // the scheduler function gets called directly
|
||||||
} else if (flush === 'post') {
|
} else if (flush === 'post') {
|
||||||
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense)
|
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue