Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/component-meta/lib/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@
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.length > 0 ? signatures[0].parameters[0] : [];
const subtype = paramType ? typeChecker.getTypeOfSymbolAtLocation(paramType, symbolNode) : typeChecker.getAnyType();

Check failure on line 544 in packages/component-meta/lib/base.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type 'Symbol | never[]' is not assignable to parameter of type 'Symbol'.

Check failure on line 544 in packages/component-meta/lib/base.ts

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Argument of type 'Symbol | never[]' is not assignable to parameter of type 'Symbol'.

Check failure on line 544 in packages/component-meta/lib/base.ts

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Argument of type 'Symbol | never[]' is not assignable to parameter of type 'Symbol'.
let schema: PropertyMetaSchema;
let declarations: Declaration[];

Expand Down
Loading