Skip to content
HomePagesHomePages template kit

ReconcileBuilder

The `{ rule, set }` bound to one template's composed sections.

The { rule, set } bound to one template’s composed sections.

Import from @homepages/template-kit.

export interface ReconcileBuilder<Sections extends Record<string, SectionInstanceHandle>> {
readonly rule: (description: string, options: ReconcileRuleOptions, fn: (ctx: ReconcileContext<Sections>) => readonly Edit[]) => ReconcileRule;
readonly set: (ref: SlotRef, value: unknown) => SetEdit;
}