ListSlotDef
The serialized shape `list.of` emits for a single-slot item — a `list`-kind `SlotDef` carrying `element` (never `fields`).
The serialized shape list.of emits for a single-slot item — a list-kind
SlotDef carrying element (never fields). element is the bare item
shape (its locked is stripped, since a list holds present items, not an
editable slot itself). min/max bound the list’s
item count; unique applies only when element is a select.of
vocabulary, and is passed through as-authored — this module does not itself
deduplicate anything.
Import from @homepages/template-kit.
Signature
Section titled “Signature”export interface ListSlotDef<E> extends Head { type: "list"; element: E; min?: number; max?: number; unique?: boolean;}