diff --git a/when/when.d.ts b/when/when.d.ts index ca2400fc5..60d569a17 100644 --- a/when/when.d.ts +++ b/when/when.d.ts @@ -61,8 +61,8 @@ declare module When { catch(exceptionType: any, onRejected?: (reason: any) => Promise): Promise; catch(exceptionType: any, onRejected?: (reason: any) => U): Promise; - catch(filter: (reason: any) => Boolean, onRejected?: (reason: any) => Promise): Promise; - catch(filter: (reason: any) => Boolean, onRejected?: (reason: any) => U): 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;