diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 3ed42ed0b55..580445328ec 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -110,7 +110,9 @@ export type Data = Record * declare const instance: ComponentInstance * ``` */ -export type ComponentInstance = T extends { new (): ComponentPublicInstance } +export type ComponentInstance = T extends { + new (): ComponentPublicInstance +} ? InstanceType : T extends FunctionalComponent ? ComponentPublicInstance>