From afce6f14e4388b7c40eb8e9a7867a6c8724a0ac5 Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Sun, 30 Nov 2014 16:18:50 +1300 Subject: [PATCH] Add when(x, f) overloads --- when/when.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/when/when.d.ts b/when/when.d.ts index a9e9d483d..c90478c10 100644 --- a/when/when.d.ts +++ b/when/when.d.ts @@ -7,6 +7,10 @@ declare function When(value: When.Promise): When.Promise; declare function When(value: When.Thenable): When.Promise; declare function When(value: T): When.Promise; +declare function When(value: When.Promise, transform: (val: T) => U): When.Promise; +declare function When(value: When.Thenable, transform: (val: T) => U): When.Promise; +declare function When(value: T, transform: (val: T) => U): When.Promise; + declare module When { /**