Juan Luis Boya García
3df971db33
Make onCancel optional
2016-07-01 04:33:56 +02:00
Juan Luis Boya García
7b1934fc90
Add onCancel() support to Bluebird
...
See http://bluebirdjs.com/docs/api/cancellation.html
2016-07-01 02:38:33 +02:00
Masahiro Wakame
149aa09a23
Merge pull request #8602 from ntrrgc/patch-1
...
Add Promise.config() to Bluebird
2016-03-19 14:16:30 +09:00
vvakame
7de6c3dd94
Merge branch 'master' into rename-repo-url
2016-03-17 21:06:54 +09:00
Juan Luis Boya García
9de5dd6927
Add Promise.config() to Bluebird
...
See http://bluebirdjs.com/docs/api/promise.config.html
2016-03-17 02:21:34 +01:00
vvakame
14fe4313f4
replace internal module to namespace
2016-03-17 02:18:10 +09:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Masahiro Wakame
c1c9a219bb
Merge pull request #7958 from brandf/master
...
bluebird: fixed inference issue with try/attempt
2016-02-12 00:23:55 +09:00
vvakame
9027703c0b
pass npm run all in new definition-tester
2016-02-10 00:16:03 +09:00
Brandon Furtwangler
dd328830dd
cleanup
2016-02-08 20:44:12 -08:00
Brandon Furtwangler
9ac51b075a
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
2016-02-08 20:39:41 -08:00
Daniel Rosenwasser
132599cf88
Added a few relevant tests.
2016-02-03 11:28:27 -08:00
Daniel Rosenwasser
290a1d7ee6
Restored optionality.
2016-02-03 11:20:20 -08:00
Daniel Rosenwasser
0a82642ce7
Replaced some overloads with simple union types.
2016-02-03 11:06:10 -08:00
Brandon Furtwangler
9a579744d2
bluebird: fixed inference issue with try/attempt
2016-02-03 08:59:20 -08:00
Jason
82a2b628a3
fix bluebird test file for proper Promise.delay() parameter order.
2016-01-15 10:13:52 -08:00
Jason
8d852210cf
fix bluebird.d.ts promise.delay() typing: ms is first arg.
...
see http://bluebirdjs.com/docs/api/promise.delay.html
2016-01-15 09:48:12 -08:00
Jeff
da884c0c61
bluebird: Update fromCallback API
2016-01-02 11:03:34 -06:00
falsandtru
4fb475ca09
Replace Promise.Thenable to PromiseLike
2015-12-23 20:44:19 +09:00
falsandtru
d46b8c7e47
Support compatibility with lib.es6.d.ts for bluebird
2015-12-23 20:31:41 +09:00
Eric Nicholson
793ee5fa00
Added bluebird mapSeries definitions
2015-12-16 09:20:08 -05:00
Samuel Reed
c48c6ff985
Fix Bluebird nodeify() when not passed callback
...
.nodeify() will return the Promise it was called on, not void, when no callback is passed.
2015-12-10 13:42:29 -06:00
Jonathan Price
002ff03420
Bluebird: Make return type of promisifyAll less restrictive
2015-12-01 23:55:03 +00:00
Masahiro Wakame
c1c5ac7c74
Merge pull request #6854 from edvinv/bluebird-cancel
...
Add reason to cancel method.
2015-11-27 00:26:22 +09:00
heycalmdown
aba0a7b449
blurbird) resolve should be able to omit the result when using new Promise()
2015-11-21 23:03:37 +09:00
edvin
aba20a4f60
Add reason to cancel method for bluebird 2.0.0.
2015-11-20 14:52:50 +01:00
edvin
e5f2a84d7d
Add reason to cancel method.
2015-11-20 14:32:45 +01:00
Eric Nicholson
f90f7cb4e0
Promise.then definitions that allow void in the error handler
2015-11-11 08:45:47 -05:00
Eric Nicholson
0ed32474bd
Added better catch definitions that pass through the original promise type or type union of promise|rejection type
2015-11-10 21:04:56 -05:00
Eric Nicholson
6824b8c8e6
Allow calls to fromNode without a result parameter in the callback
2015-11-10 20:21:43 -05:00
heycalmdown
b024a04b8a
bluebird: Promise.all takes different types of promises
2015-10-29 07:46:59 +09:00
mfrantz
d36fd3b062
bluebird: Fix typo in 'each' comment copied from wiki
...
This typo has since been fixed in the original document:
https://github.com/petkaantonov/bluebird/blob/master/API.md#eachfunction-iterator---promise
2015-09-16 17:08:10 -07:00
mfrantz
b1c0b5542d
bluebird: Add 'each'
2015-09-16 16:49:21 -07:00
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