diff --git a/types/bull/bull-tests.tsx b/types/bull/bull-tests.tsx index 47effb3176..ce3146f49b 100644 --- a/types/bull/bull-tests.tsx +++ b/types/bull/bull-tests.tsx @@ -16,6 +16,9 @@ videoQueue.process((job, done) => { // job.data contains the custom data passed when the job was created // job.jobId contains id of this job. + // job.opts contains the options that were passed to the job + job.opts; + // transcode video asynchronously and report progress job.progress(42); diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 269fcecfc2..c1a0a797f0 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -128,6 +128,11 @@ declare namespace Bull { */ data: T; + /** + * Options of the job + */ + opts: JobOptions; + /** * How many attempts where made to run this job */