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
| Argument | Type | Description |
|---|---|---|
fields | readonly SchemaField[] | The fields value. |
path | string | The path value. |
Returns
The declared result.
{ block: string; path: string; } | undefinedFull signature
function blockDefinitionPath(
fields: readonly SchemaField[],
path: string,
): { block: string; path: string; } | undefinedRelated types
SchemaFieldThe common field manifest plus the type-specific configuration selected by type.