Merge pull request #16466 from WatchBeam/bluebird-return-empty-return-void

Correct return type for no parameters in `return` method in bluebird
This commit is contained in:
Arthur Ozga
2017-05-16 13:19:15 -07:00
committed by GitHub
+2 -2
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>;