mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[@types/bull] Update JobStatus type to be compatible with all Queue methods (#21952)
* Update JobStatus type to be compatible with all Queue methods The docs for Bull suggest that methods can take `waiting` as a valid JobStatus but this is incorrect. For example [here](https://github.com/OptimalBits/bull/blob/master/lib/queue.js#L995) the `.clean` method will fail when trying to clean the status `waiting`. This should be changed to `wait` but is currently incompatible with the typings here * use `// tslint:disable-next-line` instead of `// tslint:disable`
This commit is contained in:
committed by
Mohamed Hegazy
parent
e881813b23
commit
6449d48de9
Vendored
+1
-1
@@ -134,7 +134,7 @@ declare namespace Bull {
|
||||
promote(): Promise<void>;
|
||||
}
|
||||
|
||||
type JobStatus = 'completed' | 'waiting' | 'active' | 'delayed' | 'failed';
|
||||
type JobStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed';
|
||||
|
||||
interface BackoffOptions {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user