Skip to main content

NumberCriterias <S>

Type parameters

  • S

Hierarchy

Index

Methods

between

  • Require field value to be between 2 numbers.

float

  • Require field value to be a float (requires a decimal).

gt

  • Require field value to be greater than a number.

gte

  • gte(min: number, options?: Options): S
  • Require field value to be greater than or equals to a number.

int

  • Require field value to be an integer.

lt

  • Require field value to be less than a number.

lte

  • lte(max: number, options?: Options): S
  • Require field value to be less than or equals to a number.

negative

  • Require field value to be negative and not zero.

positive

  • Require field value to be positive and not zero.