mirror of https://github.com/vuejs/core.git
chore(types): remove unnecessary type assertions (#7032)
This commit is contained in:
parent
da2ced1533
commit
11bd8db768
|
|
@ -93,9 +93,7 @@ export function watchPostEffect(
|
||||||
return doWatch(
|
return doWatch(
|
||||||
effect,
|
effect,
|
||||||
null,
|
null,
|
||||||
(__DEV__
|
__DEV__ ? { ...options, flush: 'post' } : { flush: 'post' }
|
||||||
? { ...options, flush: 'post' }
|
|
||||||
: { flush: 'post' }) as WatchOptionsBase
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,9 +104,7 @@ export function watchSyncEffect(
|
||||||
return doWatch(
|
return doWatch(
|
||||||
effect,
|
effect,
|
||||||
null,
|
null,
|
||||||
(__DEV__
|
__DEV__ ? { ...options, flush: 'sync' } : { flush: 'sync' }
|
||||||
? { ...options, flush: 'sync' }
|
|
||||||
: { flush: 'sync' }) as WatchOptionsBase
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue