@hastehaul/common 2.6.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { Job, Worker } from "bullmq";
1
+ import { Job, Worker, WorkerOptions } from "bullmq";
2
2
  import { EventEmitter } from 'events';
3
3
  /**
4
4
  * Abstract class representing a worker for processing jobs from a Job Queue.
@@ -11,7 +11,7 @@ export declare abstract class AbstractWorker {
11
11
  *
12
12
  * @param {string} queueName - The name of the job queue that this worker will process jobs from.
13
13
  */
14
- constructor(queueName: string, useReplicas?: boolean, opts?: WorkerOptions | undefined);
14
+ constructor(queueName: string, useReplicas?: boolean, opts?: Partial<WorkerOptions> | undefined);
15
15
  /**
16
16
  * Abstract method to process jobs retrieved from the job queue.
17
17
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",