Selaa lähdekoodia

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

yang 6 vuotta sitten
vanhempi
commit
703c9bc61f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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