From: Evan You Date: Tue, 14 Apr 2020 22:13:53 +0000 (-0400) Subject: types: fix public instance $root and $parent type X-Git-Tag: v3.0.0-alpha.13~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae362400e8c259364ccd91f17b2887bb3b55a0b;p=thirdparty%2Fvuejs%2Fcore.git types: fix public instance $root and $parent type --- diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index f30c300a3d..9e28d26592 100644 --- a/packages/runtime-core/src/componentProxy.ts +++ b/packages/runtime-core/src/componentProxy.ts @@ -36,8 +36,8 @@ export type ComponentPublicInstance< $attrs: Data $refs: Data $slots: Slots - $root: ComponentInternalInstance | null - $parent: ComponentInternalInstance | null + $root: ComponentPublicInstance | null + $parent: ComponentPublicInstance | null $emit: EmitFn $el: any $options: ComponentOptionsBase