Skip to content
HomePagesHomePages template kit

BakedRowValue

One row of a record `list` bound whole-row to a bakeable fact array (`source: fact.property.units` / `fact.property.contacts`): the collection's projected row type (`CollectionRowValues[F]`), plus any authored (source-less) fields the projection does not already carry, typed from their builders.

One row of a record list bound whole-row to a bakeable fact array (source: fact.property.units / fact.property.contacts): the collection’s projected row type (CollectionRowValues[F]), plus any authored (source-less) fields the projection does not already carry, typed from their builders. A field the projection does carry keeps the projection’s type — the bake delivers that shape whether or not the field is also declared.

Import from @homepages/template-kit.

export type BakedRowValue<F extends CollectionField, I> = CollectionRowValues[F] & {
[K in Exclude<AuthoredRowFieldKeys<I>, keyof CollectionRowValues[F]>]: SlotValue<I[K]>;
};