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.
Parameters
Section titled “Parameters”fields
Section titled “fields”Record<string, FragmentFieldSpec>
Returns
Section titled “Returns”object
facts:
Record<string,FactFieldSpec>
generated
Section titled “generated”generated:
Record<string,string|GeneratedFieldSpec>
slots:
Record<string,SlotFieldSpec>