From 9fa23d93d5d3765fb665b213590468f04dfb2bce Mon Sep 17 00:00:00 2001 From: Gianluca Guarini Date: Fri, 8 Nov 2024 23:11:10 +0100 Subject: [PATCH] added: TagSlotData type --- dom-bindings.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/dom-bindings.d.ts b/dom-bindings.d.ts index 7061d1f..ea372a6 100644 --- a/dom-bindings.d.ts +++ b/dom-bindings.d.ts @@ -90,16 +90,20 @@ export interface SimpleBindingData extends BaseBindingData { export interface SlotBindingData extends BaseBindingData { template?: TemplateChunk + attributes: AttributeExpressionData[] + name: string +} + +export interface TagSlotData { + id: string + html: string + bindings: BindingData[] } export interface TagBindingData extends BaseBindingData { getComponent(name: string): TemplateChunk attributes: AttributeExpressionData[] - slots: { - id: string - html: string - bindings: BindingData[] - }[] + slots: TagSlotData[] } export type BindingData =