Type alias SetupFunc

SetupFunc: ((channel, callback) => void) | ((channel) => Promise<void>) | ((channel, callback) => void) | ((channel) => Promise<void>)

Type declaration

    • (channel, callback): void
    • Parameters

      • channel: Channel
      • callback: ((error?) => void)
          • (error?): void
          • Parameters

            • Optional error: Error
              Optional

            Returns void

      Returns void

Type declaration

    • (channel): Promise<void>
    • Parameters

      Returns Promise<void>

Type declaration

    • (channel, callback): void
    • Parameters

      • channel: amqplib.ConfirmChannel
      • callback: ((error?) => void)
          • (error?): void
          • Parameters

            • Optional error: Error
              Optional

            Returns void

      Returns void

Type declaration

    • (channel): Promise<void>
    • Parameters

      • channel: amqplib.ConfirmChannel

      Returns Promise<void>

Generated using TypeDoc