@cowwoc/requirements - v4.0.12
    Preparing search index...

    Interface ZeroNumberComponent

    Methods that validators for numbers that may be zero must contain.

    interface ZeroNumberComponent {
        isNotZero(): this;
        isZero(): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Ensures that the value is not zero. -0.0 is considered to be zero and negative.

      Returns this

      this

      TypeError if the value is undefined or null

      RangeError if the value is zero

    • Ensures that the value is zero. -0.0 is considered to be zero and negative.

      Returns this

      this

      TypeError if the value is undefined or null

      RangeError if the value is:

      • not zero
      • not a number