UNPKG

@jiaxinjiang/nest-amqp

Version:

RabbitMQ component for NestJs.

13 lines (12 loc) 406 B
import { AmqpService } from './amqp.service'; import { PublishParams } from './amqp.interface'; export declare class Publisher { private readonly amqpService; private logger; private amqpConfig; private channel; private exchangeOptions; constructor(amqpService: AmqpService); setExchange(exchange: string): Promise<void>; publish(params: PublishParams | string): boolean; }