Skip to content

SchemaOverrideInput

SchemaOverrideInput<THasMany, TValidator> = THasMany extends true ? never : object

Defined in: packages/core/src/fields/baseTypes.ts:495

Types a field’s schema.validator input: never when the field is hasMany: true (overrides apply only to single-value storage — see select()/relationship()/upload()), otherwise an optional { validator } narrowed to TValidator. The RESOLVED field type never uses this — it carries a plain, non-conditional { validator: TValidator } (traveling values stay generic-erased; only the authoring-time input is gated).

THasMany extends boolean

TValidator extends FieldSchemaValidator