Options
All
  • Public
  • Public/Protected
  • All
Menu

@appsweet-co/debug

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

DebugType

DebugType: "all" | "log" | "warn" | "error"

Variables

Const defaults

defaults: DebugOpts = ...

Functions

Const Debug

  • Debug(opts: DebugOpts): { error: <T>(...context: T[]) => void; log: <T>(...context: T[]) => void; warn: <T>(...context: T[]) => void }
  • Parameters

    Returns { error: <T>(...context: T[]) => void; log: <T>(...context: T[]) => void; warn: <T>(...context: T[]) => void }

    • error: <T>(...context: T[]) => void
        • <T>(...context: T[]): void
        • Type parameters

          • T: string

          Parameters

          • Rest ...context: T[]

          Returns void

    • log: <T>(...context: T[]) => void
        • <T>(...context: T[]): void
        • Type parameters

          • T: string

          Parameters

          • Rest ...context: T[]

          Returns void

    • warn: <T>(...context: T[]) => void
        • <T>(...context: T[]): void
        • Type parameters

          • T: string

          Parameters

          • Rest ...context: T[]

          Returns void

Const deactivate

Const format

  • format(prefix: string): (meta: string) => <T>(msgs: T[]) => string[]
  • Parameters

    • prefix: string

    Returns (meta: string) => <T>(msgs: T[]) => string[]

      • (meta: string): <T>(msgs: T[]) => string[]
      • Parameters

        • meta: string

        Returns <T>(msgs: T[]) => string[]

          • <T>(msgs: T[]): string[]
          • Type parameters

            • T: string

            Parameters

            • msgs: T[]

            Returns string[]

Generated using TypeDoc