Skip to content
HomePagesHomePages template kit

Facts

The derive-time view a `compute((f) => …)` callback's parameter is bound to — a mapped type over the fact graph registry.

The derive-time view a compute((f) => …) callback’s parameter is bound to — a mapped type over the fact graph registry. Bindable facts sit at f.<container>.<key> (f.property.*; the unit and contact containers read through the primary rows unit and contact), readable-only entries at f.<key>, and the ambient year is injected at derive time.

Import from @homepages/template-kit.

export type Facts = {
readonly property: PropertyBranch;
} & {
readonly [K in FactGraphName as Graph[K] extends {
role: "readable";
} ? K : never]: EntryValue<K>;
};