From: edison Date: Wed, 11 Aug 2021 14:46:18 +0000 (+0800) Subject: fix(types): fix forceUpdate type (#4302) X-Git-Tag: v3.2.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=380608bd44eb385ec085eec4355e6fdc01ca09cd;p=thirdparty%2Fvuejs%2Fcore.git fix(types): fix forceUpdate type (#4302) --- diff --git a/packages/runtime-core/src/componentPublicInstance.ts b/packages/runtime-core/src/componentPublicInstance.ts index 9b67c9132c..aad6207ec4 100644 --- a/packages/runtime-core/src/componentPublicInstance.ts +++ b/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 $el: any $options: Options & MergedComponentOptionsOverride - $forceUpdate: ReactiveEffect + $forceUpdate: () => void $nextTick: typeof nextTick $watch( source: string | Function,