Roqueform
    Preparing search index...

    Interface ValidationMixin<Result, Options>

    The mixin added to fields by the validationPlugin.

    interface ValidationMixin<Result, Options> {
        isValidating: boolean;
        validation: null | Validation<Result>;
        abortValidation(reason?: unknown): void;
        validate(options: Options): Result;
    }

    Type Parameters

    • Result

      The result produced by a validator.

    • Options

      Options passed to the validator.

    Index

    Properties

    isValidating: boolean

    true if the validation is pending, or false otherwise.

    validation: null | Validation<Result>

    The pending validation, or null if there's no pending validation.

    Methods

    • Aborts the validation associated with the field. No-op if there's no pending validation.

      Parameters

      • Optionalreason: unknown

      Returns void