Class CommandQueue

Hierarchy (view full)

  • Api
    • CommandQueue

Constructors

Properties

callback?: ((err, data) => void)

Type declaration

    • (err, data): void
    • Parameters

      • err: null | Error
      • data: unknown[]

      Returns void

client: Monkey
commands: BaseCommand<unknown>[] = []
errors: string[] = []
replies: unknown[] = []
sent: boolean = false

Accessors

Methods

  • Parameters

    • cb: ((err, data) => void)
        • (err, data): void
        • Parameters

          • err: null | Error
          • data: unknown[]

          Returns void

    Returns void

  • Type Parameters

    • T

    Parameters

    • command: string
    • _cb: never
    • parser: ((data) => null | T)
        • (data): null | T
        • Parameters

          • data: null | string

          Returns null | T

    Returns this