From 8fe4901ffedb82a8fc30a525f8608da5c4a89204 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 13 Dec 2018 11:26:28 -0800 Subject: [PATCH] Fix lint in bluebird --- types/bluebird/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 1f8768498a..24c2b79a32 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -35,7 +35,7 @@ * THE SOFTWARE. */ -type Constructor = new (...args: any[]) => E +type Constructor = new (...args: any[]) => E; type CatchFilter = ((error: E) => boolean) | (object & E); type IterableItem = R extends Iterable ? U : never; type IterableOrNever = Extract>; @@ -152,6 +152,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { ): Bluebird; catch( + // tslint:disable-next-line:unified-signatures filter1: Constructor | CatchFilter, onReject: (error: E1) => Resolvable, ): Bluebird; @@ -262,6 +263,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { onReject: (error: E1) => Resolvable, ): Bluebird; tapCatch( + // tslint:disable-next-line:unified-signatures filter1: Constructor | CatchFilter, onReject: (error: E1) => Resolvable, ): Bluebird; @@ -467,6 +469,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { value: U, ): Bluebird; catchReturn( + // tslint:disable-next-line:unified-signatures filter1: Constructor | CatchFilter, value: U, ): Bluebird; @@ -541,6 +544,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { reason: Error, ): Bluebird; catchThrow( + // tslint:disable-next-line:unified-signatures filter1: Constructor | CatchFilter, reason: Error, ): Bluebird;