Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/not"

Index

Functions

Functions

not

  • Negates value. This is meant to be used with other validators like in not(blank()).

    example
    useForm(({ not, blank }) => ({
      password: [not(blank())]
    }));

    Type parameters

    • Params

    Parameters

    • func: Validator<Params>

      The validation that must be negated.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc