function

blockDefinitionPath

Locate a canonical field path's innermost block definition among bound fields: the definition's slug and the field's path within it. A resource's own field has none. Only the containers along the path are resolved.

Arguments

ArgumentTypeDescription
fieldsreadonly SchemaField[]The fields value.
pathstringThe path value.

Returns

The declared result.

{ block: string; path: string; } | undefined

Full signature

function blockDefinitionPath( fields: readonly SchemaField[], path: string, ): { block: string; path: string; } | undefined

Source packages/protocol/src/index.ts:2

Related types

  • SchemaField

    The common field manifest plus the type-specific configuration selected by type.