ReconcileRule
One authored rule: a description (used in failure logs) and its pure function.
One authored rule: a description (used in failure logs) and its pure function.
The stored fn is typed against the erased SiteValues so rules over
different section sets share one transport type; defineReconcile.rule gives
the author the section-typed SiteView at the call site.
Import from @homepages/template-kit.
Signature
Section titled “Signature”export interface ReconcileRule { readonly description: string; readonly reads: readonly SlotReadRef[]; readonly fn: (ctx: { readonly site: SiteValues; readonly facts: Facts; }) => readonly Edit[];}