Skip to content
HomePagesHomePages template kit

defineReconcile

Bind `rule`/`set` to a template's `composeSections()` output.

Bind rule/set to a template’s composeSections() output. site is typed from the real section set, and set resolves a handle to its instanceId so every edit is self-contained. An async rule fn fails to typecheck — its Promise return is not assignable to readonly Edit[].

Import from @homepages/template-kit.

function defineReconcile<Sections extends Record<string, SectionInstanceHandle>>(sections: Sections): ReconcileBuilder<Sections>
Name Type Required Description
sections Sections required

ReconcileBuilder<Sections>