diff --git a/index.d.ts b/index.d.ts index b46414265..16c9fcdb8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -832,6 +832,19 @@ declare namespace Bull { asc?: boolean ): Promise>>; + /** + * 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. */