expandFieldSpecs
expandFieldSpecs(
fields):Record<string,FragmentFieldSpec>
Defined in: fragments.ts:159
Expand array fallbacks into ordinary per-paragraph fields: intro with
three elements becomes intro1, intro2, intro3, each inheriting the
field’s kind and swap. Runs BEFORE hashing and before the wire, in both the
React and the core paths, so the server never learns arrays exist.
Idempotent: expanded specs contain no arrays.
Parameters
Section titled “Parameters”fields
Section titled “fields”Record<string, FragmentFieldSpec>
Returns
Section titled “Returns”Record<string, FragmentFieldSpec>