Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/eq"

Index

Variables

Functions

Variables

Const equalTo

equalTo: eq = eq

Functions

eq

  • Validates that the specified value is equal to another.

    example
    useForm(({ eq }) => ({
      captcha: [eq("I'm not a bot")]
    }));

    Type parameters

    • Params

    Parameters

    • reference: number | string | boolean

      The expected value.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc