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

This commit is contained in:
yang 2020-03-17 06:41:11 +08:00 committed by GitHub
parent c450ede12d
commit 703c9bc61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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