Skip to content
HomePagesHomePages template kit

SourceFieldDescriptor

One canonical field a `direct` source may bind to — a value of `SOURCE_FIELDS`.

One canonical field a direct source may bind to — a value of SOURCE_FIELDS.

Import from @homepages/template-kit.

export type SourceFieldDescriptor = {
container: SourceFieldContainer;
value_type: SourceFieldValueType;
image?: true;
writeback?: WritebackTarget;
};
  • Whether the field is writable is derived, not stored: a field is writable iff it carries a writeback (unit scalars are additionally gated on the property having a single unit). Resolution reads the single/primary item for a top-level slot and the current row for a nested item slot.