2
0
Эх сурвалжийг харах

types: fix public instance $root and $parent type

Evan You 6 жил өмнө
parent
commit
8ae362400e

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