types: fix public instance $root and $parent type

This commit is contained in:
Evan You 2020-04-14 18:13:53 -04:00
parent 2e06f5bbe8
commit 8ae362400e

View File

@ -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<E>
$el: any
$options: ComponentOptionsBase<P, B, D, C, M, E>