Skip to content

Commit

Permalink
export Consumer and ConsumerOptions (#318)
Browse files Browse the repository at this point in the history
Fix(types): export Consumer and ConsumerOptions 

Co-authored-by: Brett Bedarf <c-brett.bedarf@uniparks.com>
  • Loading branch information
BrettBedarf and Brett Bedarf committed Apr 3, 2023
1 parent 886299f commit 93b0ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChannelWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ export interface PublishOptions extends Options.Publish {
timeout?: number;
}

interface ConsumerOptions extends amqplib.Options.Consume {
export interface ConsumerOptions extends amqplib.Options.Consume {
prefetch?: number;
}

interface Consumer {
export interface Consumer {
consumerTag: string | null;
queue: string;
onMessage: (msg: amqplib.ConsumeMessage) => void;
Expand Down

0 comments on commit 93b0ebf

Please sign in to comment.