From 0a256eed0142a8410d6cc7e9f0264e0fa38d29d9 Mon Sep 17 00:00:00 2001 From: d-ph Date: Sun, 26 Aug 2018 15:35:28 +0100 Subject: [PATCH] [bluebird] Simplify the "catch()" typing --- types/bluebird/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 93dc18dfee..091dbe6e7a 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -70,8 +70,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * * Alias `.caught();` for compatibility with earlier ECMAScript version. */ - catch(onReject: (error: any) => Resolvable): Bluebird; - catch(onReject: ((error: any) => Resolvable) | undefined | null): Bluebird; + catch(onReject: ((error: any) => Resolvable) | undefined | null): Bluebird; /** * This extends `.catch` to work more like catch-clauses in languages like Java or C#.