[@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:
Patt-tom McDonnell
2018-01-02 17:34:24 -08:00
committed by Mohamed Hegazy
parent e881813b23
commit 6449d48de9
+1 -1
View File
@@ -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 {
/**