Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "modules/debug"

Index

Modules

Functions

Functions

assert

  • assert(truthy: unknown): void
  • Checks that Boolean(truthy) === true, otherwise shutdowns and logs truthy.

    Parameters

    • truthy: unknown

      Suspect to be check for truthiness.

    Returns void

shutdown

  • shutdown(payload?: unknown, description?: string): never
  • Aborts current program execution workflow after invoking error(payload, description).

    Parameters

    • Default value payload: unknown = "undefined behaviour"

      Error or vanilla object, which state needs to be logged.

    • Default value description: string = ""

      Additional info message to be logged before payload.

    Returns never

Generated using TypeDoc