Skip to content

Commit

Permalink
fix: add mising getMetrics type (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
alko89 authored Aug 3, 2023
1 parent 13fe324 commit a217a7d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,19 @@ declare namespace Bull {
asc?: boolean
): Promise<Array<Job<T>>>;

/**
* Returns a promise that resolves to a Metrics object.
*/
getMetrics(type: 'completed' | 'failed', start?: number, end?: number): Promise<{
meta: {
count: number;
prevTS: number;
prevCount: number;
};
data: number[];
count: number;
}>

/**
* Returns a promise that resolves to the next job in queue.
*/
Expand Down

0 comments on commit a217a7d

Please sign in to comment.