SlotBinding
One slot: its id, the definition the section declared for it, and its runtime value.
One slot: its id, the definition the section declared for it, and its runtime value.
The slot primitives own the marker — they derive it from id, so it cannot be
forgotten and cannot land anywhere else. The binding must never be spread onto an
element (id/def/value are not DOM attributes).
Import from @homepages/template-kit.
Signature
Section titled “Signature”export type SlotBinding<D> = { readonly id: string; readonly def: D; readonly value: BoundSlotValue<D>; readonly present: boolean;};