diff --git a/q/Q.d.ts b/q/Q.d.ts index 59e891c52..8dbf93450 100644 --- a/q/Q.d.ts +++ b/q/Q.d.ts @@ -188,6 +188,9 @@ declare module Q { reason?: any; } + // If no value provided, returned promise will be of void type + export function when(): Promise; + // if no fulfill, reject, or progress provided, returned promise will be of same type export function when(value: IPromise): Promise; export function when(value: T): Promise;