Skip to content

Commit

Permalink
added: TagSlotData type
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Nov 8, 2024
1 parent cfd3fc6 commit 9fa23d9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dom-bindings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,20 @@ export interface SimpleBindingData<Scope = any> extends BaseBindingData<Scope> {

export interface SlotBindingData<Scope = any> extends BaseBindingData<Scope> {
template?: TemplateChunk<Scope>
attributes: AttributeExpressionData<Scope>[]
name: string
}

export interface TagSlotData<Scope = any> {
id: string
html: string
bindings: BindingData<Scope>[]
}

export interface TagBindingData<Scope = any> extends BaseBindingData<Scope> {
getComponent(name: string): TemplateChunk<Scope>
attributes: AttributeExpressionData<Scope>[]
slots: {
id: string
html: string
bindings: BindingData<Scope>[]
}[]
slots: TagSlotData[]
}

export type BindingData<Scope = any> =
Expand Down

0 comments on commit 9fa23d9

Please sign in to comment.