Skip to content

splitFieldSpecs

splitFieldSpecs(fields): object

Defined in: fragments.ts:402

Split a declaration into its generated fields (the mint path), its fact fields and its slot fields. Array fallbacks are expanded first, so the generated part is what normalizeFieldSpecs hashes. Only the generated part ever enters the schema hash or the mint request.

Record<string, FragmentFieldSpec>

object

facts: Record<string, FactFieldSpec>

generated: Record<string, string | GeneratedFieldSpec>

slots: Record<string, SlotFieldSpec>