Explorar o código

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

edison %!s(int64=4) %!d(string=hai) anos
pai
achega
380608bd44
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      packages/runtime-core/src/componentPublicInstance.ts

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

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