]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): fix forceUpdate type (#4302)
authoredison <daiwei521@126.com>
Wed, 11 Aug 2021 14:46:18 +0000 (22:46 +0800)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 14:46:18 +0000 (10:46 -0400)
packages/runtime-core/src/componentPublicInstance.ts

index 9b67c9132c7cbb815c636378bbfc4a801d6f01b8..aad6207ec466970e2f471a61b23e2503f3fb1661 100644 (file)
@@ -16,7 +16,6 @@ import {
   isFunction
 } from '@vue/shared'
 import {
-  ReactiveEffect,
   toRaw,
   shallowReadonly,
   track,
@@ -192,7 +191,7 @@ export type ComponentPublicInstance<
   $emit: EmitFn<E>
   $el: any
   $options: Options & MergedComponentOptionsOverride
-  $forceUpdate: ReactiveEffect
+  $forceUpdate: () => void
   $nextTick: typeof nextTick
   $watch(
     source: string | Function,