diff --git a/types/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts index c7b1112a9e..05ac5cc19c 100644 --- a/types/bluebird/bluebird-tests.ts +++ b/types/bluebird/bluebird-tests.ts @@ -553,7 +553,7 @@ bool = fooProm.isResolved(); strProm = fooProm.call("foo"); strProm = fooProm.call("foo", 1, 2, 3); -// $ExpectType Bluebird +// $ExpectType Bluebird quxProm.call("qux"); strProm = fooProm.get("foo").then(method => method()); diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index efb43450eb..13a11c2e3e 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -350,7 +350,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * }); * */ - call(propertyName: U, ...args: any[]): Bluebird; + call(this: Bluebird, propertyName: U, ...args: any[]): Bluebird any ? ReturnType : never>; /** * This is a convenience method for doing: