diff --git a/packages/component-meta/lib/base.ts b/packages/component-meta/lib/base.ts index a0d9fbd5b8..901dda662a 100644 --- a/packages/component-meta/lib/base.ts +++ b/packages/component-meta/lib/base.ts @@ -540,7 +540,7 @@ function createSchemaResolvers( function resolveSlotProperties(prop: ts.Symbol): SlotMeta { const propType = typeChecker.getNonNullableType(typeChecker.getTypeOfSymbolAtLocation(prop, symbolNode)); const signatures = propType.getCallSignatures(); - const paramType = signatures[0].parameters[0]; + const paramType = signatures[0]?.parameters[0]; const subtype = paramType ? typeChecker.getTypeOfSymbolAtLocation(paramType, symbolNode) : typeChecker.getAnyType(); let schema: PropertyMetaSchema; let declarations: Declaration[];