Skip to content

Commit

Permalink
fixed: getComponent method type riot/riot#3049
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Nov 22, 2024
1 parent d6e82e1 commit 833cfc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dom-bindings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ export interface TagSlotData<Scope = any> {
}

export interface TagBindingData<Scope = any> extends BaseBindingData<Scope> {
getComponent(name: string): TemplateChunk<Scope>
getComponent(
name: string,
): ({
slots,
attributes,
}: {
slots: TagSlotData<Scope>[]
attributes: AttributeExpressionData<Scope>[]
}) => Pick<TemplateChunk<Scope>, 'mount' | 'update' | 'unmount'>
attributes: AttributeExpressionData<Scope>[]
slots: TagSlotData[]
}
Expand Down

0 comments on commit 833cfc1

Please sign in to comment.