Skip to content

Commit

Permalink
chore(types): remove unnecessary type assertions (#7032)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Nov 14, 2022
1 parent da2ced1 commit 11bd8db
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/runtime-core/src/apiWatch.ts
Expand Up @@ -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' }
)
}

Expand All @@ -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' }
)
}

Expand Down

0 comments on commit 11bd8db

Please sign in to comment.