瀏覽代碼

fix(types): fix forceUpdate type (#4302)

edison 4 年之前
父節點
當前提交
380608bd44
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/runtime-core/src/componentPublicInstance.ts

+ 1 - 2
packages/runtime-core/src/componentPublicInstance.ts

@@ -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,