Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsNotNegative"

Index

Functions

isNotNegative

  • isNotNegative(value: number): boolean
  • Checks if the value is >= 0.

    Parameters

    • value: number

      The value being checked.

    Returns boolean

    True if the value is a number not negative, false otherwise.

isNotNegativeError

  • isNotNegativeError(value: any, field: string, code?: string): void
  • Throws an IsError if the value is negative.

    throws

    IsError if the value is not a Boolean instance.

    Parameters

    • value: any

      The value being checked.

    • field: string

      The name of the field being checked.

    • Optional code: string

      The application / module code assigned to this error.

    Returns void

Generated using TypeDoc