Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/ne"

Index

Variables

Functions

Variables

Const notEqualTo

notEqualTo: ne = ne

Functions

ne

  • Validates that the specified value is not equal to another.

    example
    useForm(({ ne }) => ({
      username: [ne("admin")]
    }));

    Type parameters

    • Params

    Parameters

    • reference: number | string | boolean

      The comparison value.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc