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

    Type Alias Validation<Options>

    A validation combines a validation rule with specific options to be used during field validation. This represents a configured validation ready for execution.

    Think of this type as "ValidationRule" + "runtime options"

    const validation: Validation<{ length: number }> = {
    rule: minLengthRule,
    options: { length: 5 }
    }
    type Validation<Options extends any> = {
        options?: Options;
        rule: ValidationRule<Options>;
    }

    Type Parameters

    • Options extends any

      The type of options for the validation rule

    Index

    Properties

    Properties

    options?: Options

    Runtime options to pass to the validator function. These options configure the specific behavior of the validation.

    The validation rule to execute.