From f6955298fff02e44da499e85ebb8e256ae3ca740 Mon Sep 17 00:00:00 2001 From: Blake Kostner Date: Sat, 27 Jan 2018 13:38:31 -0700 Subject: [PATCH] add getWaiting function to queue --- types/bull/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index e4aa2ba809..68caef4126 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -425,6 +425,11 @@ declare namespace Bull { */ getJob(jobId: JobId): Promise; + /** + * Returns a promise that will return an array with the waiting jobs between start and end. + */ + getWaiting(start?: number, end?: number): Promise; + /** * Returns a promise that will return an array with the active jobs between start and end. */