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(
|
||||
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' }
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue