Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/gt"

Index

Variables

Functions

Variables

Const greaterThan

greaterThan: gt = gt

Functions

gt

  • Validates that the specified value is greater than another.

    example
    useForm(({ gt }) => ({
      age: gt(13)
    }));

    Type parameters

    • Params

    Parameters

    • reference: number

      The comparison value.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc