Skip to content

Commit cda5066

Browse files
authored
fix: make the "opts" argument optional (#3)
Related: #2
1 parent 0ee1d4c commit cda5066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async function createQueue(
140140
export function createAdapter(
141141
snsClient: SNS,
142142
sqsClient: SQS,
143-
opts: AdapterOptions & ClusterAdapterOptions
143+
opts: AdapterOptions & ClusterAdapterOptions = {}
144144
) {
145145
let isClosed = false;
146146
let _topicArn: string;

0 commit comments

Comments
 (0)