Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/lte"

Index

Variables

Functions

Variables

Const lessThanOrEqualTo

lessThanOrEqualTo: lte = lte

Functions

lte

  • Validates that the specified value is less than or equal to another.

    example
    useForm(({ lte }) => ({
      bid: [lte(9999)]
    }));

    Type parameters

    • Params

    Parameters

    • reference: number

      The comparison value.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc