@vinejs/vine - v4.0.0-next.1
    Preparing search index...

    Class NullableModifier<Schema>

    Modifies the schema type to allow null values in addition to the original schema type. This is useful for optional database fields or API responses that may contain null values.

    const schema = vine.string().nullable()
    // Accepts: "hello", null
    // Rejects: undefined, 123

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    "[ITYPE]": Schema[typeof ITYPE] | null

    Define the input type of the schema, including null

    "[OTYPE]": Schema[typeof OTYPE] | null

    The output value of the field with null support. The property points to a type only and not the real value.

    "[COTYPE]": Schema[typeof COTYPE] | null

    Type marker for camelCase output type inference

    Methods