Sanity Library Reference Docs
    Preparing search index...

    Type Alias FieldDefinition<TType, TAlias>

    FieldDefinition: (
        InlineFieldDefinition[TType]
        | TypeAliasDefinition<string, TAlias>
    ) & FieldDefinitionBase

    The shape of a field definition. Note, it's recommended to use the defineField function instead of using this type directly.

    Where defineField infers the exact field type, FieldDefinition is a compromise union of all types a field can have.

    A field definition can be a reference to another registered top-level type or a inline type definition.

    Type Parameters