From 8ae362400e8c259364ccd91f17b2887bb3b55a0b Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 14 Apr 2020 18:13:53 -0400 Subject: [PATCH] types: fix public instance $root and $parent type --- packages/runtime-core/src/componentProxy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index f30c300a3..9e28d2659 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