Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/range"

Index

Functions

Functions

range

  • Validates that the specified value is within a numeric range.

    example
    useForm(({ range }) => ({
      age: [range(19, 99)]
    }));

    Type parameters

    • Params

    Parameters

    • start: number

      The starting boundary of the range.

    • end: number

      The ending boundary of the range.

    • Optional options: RuleOptions

      The validator options.

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc