mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
[bull] Queue extends EventEmitter
This commit is contained in:
@@ -143,6 +143,8 @@ pdfQueue
|
||||
.on('drained', () => undefined)
|
||||
.on('removed', (job: Queue.Job) => undefined);
|
||||
|
||||
pdfQueue.setMaxListeners(42);
|
||||
|
||||
// test different process methods
|
||||
|
||||
const profileQueue = new Queue('profile');
|
||||
|
||||
Vendored
+2
-1
@@ -17,6 +17,7 @@
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import * as Redis from "ioredis";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
/**
|
||||
* This is the Queue constructor.
|
||||
@@ -384,7 +385,7 @@ declare namespace Bull {
|
||||
next: number;
|
||||
}
|
||||
|
||||
interface Queue<T = any> {
|
||||
interface Queue<T = any> extends EventEmitter {
|
||||
/**
|
||||
* The name of the queue
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user