Skip to content

Commit

Permalink
feat(bullmq): omit duplicate connection declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
abenerd authored and Romakita committed Jan 15, 2024
1 parent 0398f03 commit 8e5038c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/third-parties/bullmq/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export type BullMQConfig = {
*
* Can be extended/overridden by `queueOptions`
*/
defaultQueueOptions?: QueueOptions;
defaultQueueOptions?: Omit<QueueOptions, "connection">;

/**
* Specify additional queue options by queue name
*/
queueOptions?: Record<string, QueueOptions>;
queueOptions?: Record<string, Omit<QueueOptions, "connection">>;

/**
* Disable the creation of any worker.
Expand All @@ -47,12 +47,12 @@ export type BullMQConfig = {
*
* Can be extended/overridden by `workerOptions`
*/
defaultWorkerOptions?: WorkerOptions;
defaultWorkerOptions?: Omit<WorkerOptions, "connection">;

/**
* Specify additional worker options by queue name
*/
workerOptions?: Record<string, WorkerOptions>;
workerOptions?: Record<string, Omit<WorkerOptions, "connection">>;
};

declare global {
Expand Down

0 comments on commit 8e5038c

Please sign in to comment.