Bluebird: Make return type of promisifyAll less restrictive

This commit is contained in:
Jonathan Price
2015-12-01 23:55:03 +00:00
parent 4910a7c52a
commit 002ff03420
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ declare class Promise<R> implements Promise.Thenable<R>, Promise.Inspection<R> {
* Note that the original methods on the object are not overwritten but new methods are created with the `Async`-postfix. For example, if you `promisifyAll()` the node.js `fs` object use `fs.statAsync()` to call the promisified `stat` method.
*/
// TODO how to model promisifyAll?
static promisifyAll(target: Object, options?: Promise.PromisifyAllOptions): Object;
static promisifyAll(target: Object, options?: Promise.PromisifyAllOptions): any;
/**