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 $attrs: Data
$refs: Data $refs: Data
$slots: Slots $slots: Slots
$root: ComponentInternalInstance | null $root: ComponentPublicInstance | null
$parent: ComponentInternalInstance | null $parent: ComponentPublicInstance | null
$emit: EmitFn<E> $emit: EmitFn<E>
$el: any $el: any
$options: ComponentOptionsBase<P, B, D, C, M, E> $options: ComponentOptionsBase<P, B, D, C, M, E>