diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 49bd5e3808..9046d082fb 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -55,7 +55,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * Alias `.caught();` for compatibility with earlier ECMAScript version. */ catch(onReject: (error: any) => R | PromiseLike): Bluebird; - catch(onReject?: ((error: any) => U | PromiseLike) | undefined | null): Bluebird; + catch(onReject: ((error: any) => U | PromiseLike) | undefined | null): Bluebird; /** * This extends `.catch` to work more like catch-clauses in languages like Java or C#. Instead of manually checking `instanceof` or `.name === "SomeError"`, you may specify a number of error constructors which are eligible for this catch handler. The catch handler that is first met that has eligible constructors specified, is the one that will be called. @@ -195,7 +195,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * Alias `.caught();` for compatibility with earlier ECMAScript version. */ caught(onReject: (error: any) => R | PromiseLike): Bluebird; - caught(onReject?: ((error: any) => U | PromiseLike) | undefined | null): Bluebird; + caught(onReject: ((error: any) => U | PromiseLike) | undefined | null): Bluebird; /** * This extends `.catch` to work more like catch-clauses in languages like Java or C#. Instead of manually checking `instanceof` or `.name === "SomeError"`, you may specify a number of error constructors which are eligible for this catch handler. The catch handler that is first met that has eligible constructors specified, is the one that will be called. diff --git a/types/bluebird/tslint.json b/types/bluebird/tslint.json index 85497e648a..fa9263f910 100644 --- a/types/bluebird/tslint.json +++ b/types/bluebird/tslint.json @@ -2,7 +2,6 @@ "extends": "dtslint/dt.json", "rules": { "max-line-length": [true, 490], - "no-redundant-undefined": false, "no-unnecessary-generics": false, "prefer-const": false }