Skip to content

FieldConditionProps

Defined in: packages/core/src/fields/conditions.ts:11

Data and sibling-field values visible to a field’s admin.condition.

TCollectionSlug extends VexResourceSlug = VexResourceSlug

The collection (or global) data is typed against — DocumentByResourceSlug<TCollectionSlug>, the same resolver FieldValidateProps.doc already uses. Defaults to the wide VexResourceSlug union (every document) when unspecified.

data: DocumentByResourceSlug<TCollectionSlug>

Defined in: packages/core/src/fields/conditions.ts:15

The whole document currently being edited, typed against TCollectionSlug when supplied.


siblingData: Record<string, unknown>

Defined in: packages/core/src/fields/conditions.ts:22

The value at this field’s parent path — the whole document for a top-level field, one array item or block item for a nested field. Not narrowed by TCollectionSlug — its shape varies with nesting depth in a way the collection’s own document type cannot describe in general.