From 4619149e702418b9e4bba6e135c675754589a8ed Mon Sep 17 00:00:00 2001 From: Jason Walton Date: Wed, 25 Aug 2021 10:37:51 -0400 Subject: [PATCH] fix(types): 'options' should be optional in `connect()`. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e0e566fe..3b932a23 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); }