Commit Graph
53 Commits
Author SHA1 Message Date
Dan Manastireanu 3ea5ad14c4 @types/bull Update to version 3.4.8. Closes #22673 #23965 #18911 (#29875)
* @types/bull Update to version 3.4.8. Closes #22673 #23965 #18911

* Fix return type for moveTo* methods
2018-10-22 09:38:28 -07:00
Alec Brunelle d157a0af25 changes based on other pr being merged 2018-08-20 16:05:48 -04:00
Alec Brunelle 589188a626 Add types to private functions
- Job.moveToCompleted
- Job.moveToFailed
- Queue.getNextJob
- Also add null possibility to Queue.getJob
2018-08-02 14:38:33 -04:00
Andy 7d44adf211 bull: make backoffStrategies optional (#27697) 2018-07-30 12:18:16 -07:00
Bond be6b064799 Support custom backoff strategy (#27529)
https://github.com/OptimalBits/bull/commit/ddc0879e2655209b13c642814f4dd51643bc0c84
2018-07-27 08:56:00 -07:00
Maxime VAST 10afd44fc9 Add typings for getJobs and fix remove repeatable 'repeat' param (#27602) 2018-07-26 11:58:04 -07:00
Bond 293adc3195 Add functions to take and release locks. (#27491)
Add functions to take and release locks.

https://github.com/OptimalBits/bull/blob/742a86e0af0e7d829e7d9cea55b74e7f7e850938/lib/job.js#L153-L180
2018-07-23 08:28:38 -07:00
Bond e1d9a3c9f4 GetJob returns a promise of job or null (#27448)
Says it in the jsdoc even.
2018-07-20 17:58:10 -07:00
Luke 2b130f9106 Bull: Add 'every' RepeatOptions property (#27227)
* add 'every' repeatoptions property

* fix linting

* version number

* remove patch version from header
2018-07-15 12:27:05 -07:00
segayuu 1a07f27101 [@types/Bluebird] Make iterative methods rigid types without type parameters. (#27216)
* Resolve bluebird(Array) method

* upgrade typescript version from bluebird-global

* move testfile
Reason: There are too many type definition files
  depending on jquery and it can not be managed.

* upgrade typescript version from bluebird require packages

* fix lint error: use-default-type-parameter
2018-07-12 09:23:46 -07:00
David Koblas 60009ab2a6 Updated the the event handlers with generic T 2018-06-05 17:44:52 -04:00
David Koblas 4bcbb70240 Add generic types to Queue and Job 2018-06-05 16:59:15 -04:00
sebastian krämer 106d45fba7 add property attemptsMade 2018-05-26 21:28:17 +02:00
Nathan Shively-Sanders 625451856a Merge pull request #24475 from hisorange/master
Add missing 'bclient' type to Bull types
2018-03-28 09:09:30 -07:00
hisorange f3b3166bb0 Add missing 'bclient' type 2018-03-23 10:16:38 +01:00
Daniel Rosenwasser e8bc07e649 Merge pull request #23719 from hisorange/bull-fix
Add missing limit option to bull package.
2018-03-17 18:19:06 -07:00
Arthur Ozga 692bef999e Merge pull request #23806 from alexsasharegan/master
fix(bull): adds `Queue.process` overloads
2018-03-15 13:37:44 -07:00
Alex Regan c8e95cf226 fix(bull): switch overload to Promise return 2018-02-27 19:32:33 -07:00
Alex Regan 1426182dcd fix(bull): union callback param, not return val 2018-02-27 08:19:14 -07:00
Oleg Repin be24886f7a [bull] add defaultJobOptions to QueueOptions 2018-02-26 11:28:31 +03:00
Alex Regan ebcbc212b7 fix(bull): merge overload decls with same arity 2018-02-20 15:20:04 -07:00
Alex Regan 2cd2bd8726 fix(bull): adds Queue.process overloads 2018-02-20 15:09:07 -07:00
Andy 38a16c7ac7 bull: Remove duplicate getWaiting definition (#23715) 2018-02-20 08:34:40 -08:00
hisorange 7b5682c241 Add missing limit option 2018-02-16 21:10:24 +01:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser 325dfee714 Merge pull request #23231 from btkostner/master
update bull pause and resume params
2018-02-13 12:01:10 -08:00
Andy 2a9d2f8d59 Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Matthew Scharley 2b2aaf8b2d bull: Add Queue#getWaiting (#23148)
* bull: Add Queue#getWaiting

* bull: Add isLocal flags for pause/resume

* bull: Fix JobCounts#waiting
2018-01-30 10:55:19 -08:00
Blake Kostner a852fbf34c update JobStatus wait to waiting 2018-01-27 14:57:15 -07:00
Blake Kostner f6955298ff add getWaiting function to queue 2018-01-27 13:38:31 -07:00
Blake Kostner 2409f1b11f update bull pause and resume params 2018-01-27 13:26:13 -07:00
Gabriel Terwesten a63026685a @types/bull add jobId to signature of removeRepeatable (#22785) 2018-01-10 10:20:32 -08:00
Patt-tom McDonnell 6449d48de9 [@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`
2018-01-02 17:34:24 -08:00
Andy 30957ad3d8 Remove // tslint:disable comments (#22198) 2017-12-14 13:24:24 -08:00
Gregor Yushinov c32c6ba153 Set Typescript version to 2.3 for Bluebird 2017-11-14 15:36:22 +01:00
Gregor Yushinov 30763aa85f Disable tslint for unified signatures 2017-11-14 15:21:35 +01:00
Gregor Yushinov ef92e136d1 Most tslint issues fixed 2017-11-06 19:21:20 +01:00
Gregor Yushinov 1c4f1ef167 Don't include patch version in header 2017-11-06 17:51:28 +01:00
Gregor Yushinov 811ab53955 Bull 3.3.5 update 2017-11-06 17:28:28 +01:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy 097d2acf71 Miscellaneous lint fixes (#20849) 2017-10-22 15:22:50 -07:00
Andy 14df840b7d Fixup strictFunctionTypes settings (#20374) 2017-10-06 14:21:13 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
akulikov e83ac3932c bull: added missing method "promote" from bull v3 to typings 2017-09-19 10:43:53 +03:00
marshall007 baf6a3bb98 @types/bull: ready event was replaced by Queue#isReady() 2017-06-07 17:37:49 -05:00
marshall007 e99d48a0e1 @types/bull: add missing createClient option 2017-06-07 16:47:13 -05:00
marshall007 0ccd259f04 @types/bull: fix typeRoots and baseUrl for v2 2017-06-06 14:43:09 -05:00
marshall007 6845530269 @types/bull: fix redis import 2017-06-06 13:31:53 -05:00
marshall007 92f5e11c43 @types/bull: fix all linting issues 2017-06-06 13:20:16 -05:00