Skip to content
HomePagesHomePages template kit

BuiltDecision

A fill builder's output: the serialized decision object minus `id`/`produces` (which extraction supplies from the slot key), tagged with a compile-time-only `__kind` marker so a slot builder's `fill:` parameter can check the decision against that slot's kind.

A fill builder’s output: the serialized decision object minus id/produces (which extraction supplies from the slot key), tagged with a compile-time-only __kind marker so a slot builder’s fill: parameter can check the decision against that slot’s kind. __kind never appears at runtime — only type and the decision’s own fields do.

Import from @homepages/template-kit.

export type BuiltDecision<K extends DecisionKind> = Record<string, unknown> & {
type: K;
__kind?: K;
};