diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 2ad0a66f188..4ff52d9e4f2 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -99,7 +99,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>