Commit Graph
19 Commits
Author SHA1 Message Date
13xforever f07eaa927d Merge branch 'master' into bluebird-2.0-missing-options
# Conflicts:
#	bluebird/bluebird.d.ts
2015-08-31 23:48:11 +05:00
Necroskillz 1b0742c357 Add fromNode to bluebird 2015-08-16 14:29:06 +02:00
Masahiro Wakame efcb0b9162 Merge pull request #5326 from abmohan/abmohan-fix-bluebird-promisifyAll
Add optional `options` argument to Bluebird's promisifyAll()
2015-08-15 16:23:14 +09:00
Ashwin Balamohan 93e530f0c3 Add optional argument to promisifyAll 2015-08-11 21:46:37 -04:00
Kamil Biela 03ca6c61b9 Fix bluebird constructor definitions 2015-08-10 22:29:05 +02:00
13xforever a98c5955e8 explicit typings in tests 2015-07-11 20:58:02 +05:00
13xforever be05c35168 Missing options parameters for .map(), .filter(), .promisifyAll(), and .nodeify() 2015-07-11 20:51:30 +05:00
Kei Son 5a1301bb49 bluebird: Add support to handle a type and a promise of the type altogether
A fulfilled handler can handle a raw value and a promise of the raw
value at same time.
2015-06-15 21:08:16 +09:00
JasonS 5a0ae186de add typing for bluebird Promise.promisify, and new typing for hapi v8.2.0. old hapi definition renamed to "hapi-pre-8.2.d.ts" as what version it targets is unknown. 2015-03-10 13:24:16 -07:00
Bart van der Schoor cd85a26f87 updated bluebird 2.x version header 2014-11-16 13:21:02 +01:00
Martin Poelstra a3b4851dfc Update Bluebird typings to 2.x and fix some issues:
- 'Old' typings moved to "-1.0" version
- Not all v2 methods are added yet
- Promise also implements Inspection
- .finally() doesn't get the value in its callback
- .done() returns void, not a Promise
- Add .tap() and .setScheduler()
- Add error types for use in e.g. catch()'ing specific errors
- Inspection.error() renamed to .reason()
2014-11-12 11:19:15 +01:00
Nick Fisher 310d3afe0d Fixes #2788 Correctly declare the return type of promise.filter and promise.map 2014-09-08 17:09:41 +02:00
Bart van der Schoor d40e2530fd improved bluebird definitions
changed part of module to static class members
- enables Promise.try()
various small fixes and tweaks
2014-03-16 19:36:20 +01:00
Bart van der Schoor a490e14f01 Small fixes for bluebird generics 2014-03-09 00:04:03 +01:00
Bart van der Schoor 64a7c7e391 Second pass at bluebird generics for TS > v0.9.7 (v1.0.0)
Rebased on recent infrastructure
2014-03-09 00:04:03 +01:00
Bart van der Schoor 5e338fd078 first pass at making bluebird promise definitions generic
! not ready to merge !

definitions and tests should have all the methods, but:
 * some missing overloads
 * some problematic members
 * some members or tests commented out
2014-03-09 00:02:58 +01:00
Bart van der Schoor ee76deaaef Fixed non-generic bluebird
Changed structure, export to Promise
2014-02-25 00:19:27 +01:00
Bart van der Schoor cc33dd64a4 fixed bluebird (dynamic version) mistake in test name
added 'preliminary typings' note to definitions
2014-02-22 19:55:37 +01:00
Bartvds 84309d3502 Created definitions for bluebird
"Bluebird is a full featured promise library with unmatched performance."
https://github.com/petkaantonov/bluebird

known issues:

* maybe needs a global var or single export?
* uses 'any'-type (not generic-enabled)
2014-01-18 01:11:36 +01:00