Add when signature for Promise<void>

This commit is contained in:
jbblanchet
2014-11-24 17:43:17 -05:00
parent 5898d809e0
commit 456388ff73
Vendored
+3
View File
@@ -188,6 +188,9 @@ declare module Q {
reason?: any;
}
// If no value provided, returned promise will be of void type
export function when(): Promise<void>;
// if no fulfill, reject, or progress provided, returned promise will be of same type
export function when<T>(value: IPromise<T>): Promise<T>;
export function when<T>(value: T): Promise<T>;