Browse Source

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

yang 6 years ago
parent
commit
703c9bc61f
1 changed files with 1 additions and 1 deletions
  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