Roqueform
    Preparing search index...

    Type Alias Validator<Result, Options>

    Validator: (validation: Validation<Result>, options: Options) => Result

    The validator callback to which the field value validation is delegated.

    Note: Before marking a field as invalid, be sure to check that it has the same validation as the one passed to a validator.

    Type Parameters

    • Result

      The validation result.

    • Options = void

      Options passed to the validator.

    Type declaration