From 456388ff733bc50370c673feef409c98c0929983 Mon Sep 17 00:00:00 2001 From: jbblanchet Date: Mon, 24 Nov 2014 17:43:17 -0500 Subject: [PATCH] Add when signature for Promise --- q/Q.d.ts | 3 +++ 1 file changed, 3 insertions(+) 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;