Add reason to cancel method for bluebird 2.0.0.

This commit is contained in:
edvin
2015-11-20 14:52:50 +01:00
parent e5f2a84d7d
commit aba20a4f60
+1 -1
View File
@@ -134,7 +134,7 @@ declare class Promise<R> implements Promise.Thenable<R>, Promise.Inspection<R> {
* Promises are by default not cancellable. Use `.cancellable()` to mark a promise as cancellable.
*/
// TODO what to do with this?
cancel<U>(): Promise<U>;
cancel<U>(reason?: any): Promise<U>;
/**
* Like `.then()`, but cancellation of the the returned promise or any of its descendant will not propagate cancellation to this promise or this promise's ancestors.