@vinejs/vine - v4.2.0
    Preparing search index...

    Class UnionConditional<Schema>

    Represents a union conditional type. A conditional is a predicate function combined with a schema that is applied when the predicate evaluates to true.

    Each conditional acts as a branch in the union, determining which validation schema should be applied based on runtime conditions.

    Type Parameters

    • Schema extends SchemaTypes

      The schema type to apply when condition is met

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    "[ITYPE]": Schema[typeof ITYPE]

    The input type of the schema

    "[OTYPE]": Schema[typeof OTYPE]

    The output type of the schema

    "[COTYPE]": Schema[typeof COTYPE]

    The camelCase output type of the schema

    Methods

    • Compiles the conditional to a union conditional node.

      Parameters

      • propertyName: string

        The name of the property being validated

      • refs: RefsStore

        Reference store for tracking validators and conditionals

      • options: ParserOptions

        Parser options including camelCase transformation

      Returns {}