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.
Signature
Section titled “Signature”function defineReconcile<Sections extends Record<string, SectionInstanceHandle>>(sections: Sections): ReconcileBuilder<Sections>Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
sections |
Sections |
required |
Returns
Section titled “Returns”ReconcileBuilder<Sections>