Skip to content
HomePagesHomePages template kit

SlotSource

Where a slot's value comes from: the `direct` literal a `fact.*` entry emits into a builder's `source`, or the `derived` literal `defineSchema` rewrites a `compute()` binding to — whose `transform` is always the slot's own key.

Where a slot’s value comes from: the direct literal a fact.* entry emits into a builder’s source, or the derived literal defineSchema rewrites a compute() binding to — whose transform is always the slot’s own key.

Import from @homepages/template-kit.

export type SlotSource = {
kind: "direct";
field: SourceFieldName;
} | {
kind: "derived";
transform: string;
};