@nospamproxy/core
    Preparing search index...

    Custom rule for integer range validation.

    Note, that unsafe integers are always invalid.

    Strings and numbers are allowed as the bound value.

    Hierarchy

    • BaseValidationRule
      • IntegerRangeRule
    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • min: number
      • max: number
      • isRequired: boolean = false

      Returns IntegerRangeRule

    Methods

    • Parameters

      • value: unknown
      • Optional_obj: IValidateable

      Returns boolean