chore(types): remove unnecessary type assertions (#7032)

This commit is contained in:
webfansplz 2022-11-14 14:44:06 +08:00 committed by GitHub
parent da2ced1533
commit 11bd8db768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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
) )
} }