Explorar o código

types(ComponentInternalInstance): ComponentInternalInstance.type could reuse Component type (#824)

yang %!s(int64=6) %!d(string=hai) anos
pai
achega
703c9bc61f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/component.ts

+ 1 - 1
packages/runtime-core/src/component.ts

@@ -105,7 +105,7 @@ export type RenderFunction = {
 }
 
 export interface ComponentInternalInstance {
-  type: FunctionalComponent | ComponentOptions
+  type: Component
   parent: ComponentInternalInstance | null
   appContext: AppContext
   root: ComponentInternalInstance