diff --git a/types/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts index 7ec00070cf..32ad2dcb4b 100644 --- a/types/bluebird/bluebird-tests.ts +++ b/types/bluebird/bluebird-tests.ts @@ -590,9 +590,9 @@ Promise.props(Promise.props({ num: 1, str: Promise.resolve('a') })).then(val => var propsMapValue: Map; Promise.resolve(new Map()).props().then(val => { propsMapValue = val }); -Promise.resolve(new Map>()).props().then(val => { propsMapValue = val }); +Promise.resolve(new Map>()).props().then(val => { propsMapValue = val }); Promise.props(new Map()).then(val => { propsMapValue = val }); -Promise.props(new Map>()).then(val => { propsMapValue = val }); +Promise.props(new Map>()).then(val => { propsMapValue = val }); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index d786d690c6..77327127d1 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -46,7 +46,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * Promises/A+ `.then()`. Returns a new promise chained from this promise. The new promise will be rejected or resolved dedefer on the passed `fulfilledHandler`, `rejectedHandler` and the state of this promise. */ // Based on PromiseLike.then, but returns a Bluebird instance. - then(onFulfill?: (value: R) => U | Bluebird.Thenable, onReject?: (error: any) => U | Bluebird.Thenable): Bluebird; // For simpler signature help. + then(onFulfill?: (value: R) => U | PromiseLike, onReject?: (error: any) => U | PromiseLike): Bluebird; // For simpler signature help. then(onfulfilled?: ((value: R) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Bluebird; /** @@ -620,7 +620,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { /** * Same as calling `Promise.props(thisPromise)`. With the exception that if this promise is bound to a value, the returned promise is bound to that value too. */ - props(this: PromiseLike | V>>): Bluebird>; + props(this: PromiseLike | V>>): Bluebird>; props(this: PromiseLike>): Bluebird; /**