Millwork
    Preparing search index...

    Interface FieldInput

    One field of the JSON form. The class form makes the same object.

    interface FieldInput {
        array?: boolean;
        codec?: string | AnyCodec;
        discriminator?: string;
        key?: string;
        name: string;
        optional?: boolean;
        options?: unknown;
        shape?: ShapeRef | Readonly<Record<string, ShapeRef>>;
    }

    Hierarchy (View Summary)

    Index
    array?: boolean

    A list of shapes.

    codec?: string | AnyCodec

    A codec, or the registered name of a codec.

    discriminator?: string

    The discriminator key of a polymorphic field. The default is $type.

    key?: string

    The field that gives each member of a shape array its identity.

    name: string
    optional?: boolean

    A field that can be missing. The default is false.

    options?: unknown

    The codec options.

    shape?: ShapeRef | Readonly<Record<string, ShapeRef>>

    A nested shape or value class, or a polymorphic map.