From cc7b89066ea6e2b0708c9edb390ca2823ae87bdc Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Fri, 28 Nov 2014 10:06:54 +1300 Subject: [PATCH] Add in lambda filtered catches --- when/when.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/when/when.d.ts b/when/when.d.ts index 2af3fba9d6..3b7d114f7d 100644 --- a/when/when.d.ts +++ b/when/when.d.ts @@ -56,6 +56,9 @@ declare module When { } interface Promise { + catch(filter: (reason: any) => Boolean, onRejected?: (reason: any) => Promise): Promise; + catch(filter: (reason: any) => Boolean, onRejected?: (reason: any) => U): Promise; + catch(onRejected?: (reason: any) => Promise): Promise; catch(onRejected?: (reason: any) => U): Promise;