Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/confirm"

Index

Functions

Functions

confirm

  • Validates that two attributes have the same value.

    example
    useForm(({confirm}) => ({
      passwordConfirmation: [confirm("password")]
    }));

    Type parameters

    • Params

    Parameters

    • confirmingAttribute: string

      The attribute that must be matched.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc