Correct return type for no parameters in return method in bluebird

This commit is contained in:
Simon Schick
2017-05-11 17:11:34 +02:00
parent ac9bfc4eec
commit e6fa0b8211

View File

@@ -228,8 +228,8 @@ declare class Bluebird<R> implements Bluebird.Thenable<R>, Bluebird.Inspection<R
*
* Alias `.thenReturn();` for compatibility with earlier ECMAScript version.
*/
return(): Bluebird<any>;
thenReturn(): Bluebird<any>;
return(): Bluebird<void>;
thenReturn(): Bluebird<void>;
return<U>(value: U): Bluebird<U>;
thenReturn<U>(value: U): Bluebird<U>;