Skip to content

Commit

Permalink
fix(types): 'options' should be optional in connect().
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalton committed Aug 25, 2021
1 parent a54b5a5 commit 4619149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type { SetupFunc, CreateChannelOpts, default as ChannelWrapper } from './

export function connect(
urls: string[],
options: AmqpConnectionManagerOptions
options?: AmqpConnectionManagerOptions
): IAmqpConnectionManager {
return new AmqpConnectionManager(urls, options);
}
Expand Down

0 comments on commit 4619149

Please sign in to comment.