dyna-record
    Preparing search index...

    Interface ArrayFieldDef

    A schema field definition for an array/list type.

    The items property describes the element type — primitives, enums, objects, or nested arrays. Inferred as Array<InferFieldDef<items>>.

    const schema = {
    tags: { type: "array", items: { type: "string" } },
    matrix: { type: "array", items: { type: "array", items: { type: "number" } } }
    } as const satisfies ObjectSchema;
    interface ArrayFieldDef {
        items: FieldDef;
        nullable?: boolean;
        type: "array";
    }
    Index

    Properties

    Properties

    items: FieldDef

    A FieldDef describing the type of each array element. All field types are supported as array items, including discriminated unions. Arrays always use full replacement on update, so discriminated union items are serialized per-element using variant-aware logic.

    nullable?: boolean

    When true, the field becomes optional.

    type: "array"

    Must be "array" to indicate a list/array field.