Skip to content

getFieldInterfaces

getFieldInterfaces(fields): string[]

Defined in: packages/core/src/fields/interfaceGen.ts:16

Recursively collects export type declarations for every group field that carries an interfaceName, at any depth in the field tree.

Traversal is depth-first so nested named types are always declared before the parent types that reference them. Both direct group sub-fields and group items inside array fields are visited.

Record<string, AdminField<{ }>>

The field map to walk (collection-level or group sub-fields).

string[]

Ordered list of export type Name = ... strings, ready to prepend to the generated interface block.