Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsBoolean"

Index

Functions

isBoolean

  • isBoolean(value: any): boolean
  • Checks if the argument is a real boolean.

    Parameters

    • value: any

      The value being checked.

    Returns boolean

    True if the argument is an instance of Boolean.

isBooleanError

  • isBooleanError(value: any, field: string, code?: string): boolean
  • Throws an IsError if the value does not pass the isBoolean check.

    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 boolean

    false if an IsError is not thrown

Generated using TypeDoc