@hastehaul/common 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,9 @@
1
1
  import { Job, Worker } from "bullmq";
2
+ export type JobT = {
3
+ job: Job;
4
+ };
2
5
  export declare abstract class AbstractWorker {
3
6
  protected worker: Worker;
4
7
  constructor(queueName: string);
5
- protected abstract process(job: Job): Promise<void>;
8
+ protected abstract process(job: JobT['job']): Promise<void>;
6
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",