diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 5e7ddcfb92..d22c94406a 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -566,7 +566,12 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { /** * Same as calling `Promise.all(thisPromise)`. With the exception that if this promise is bound to a value, the returned promise is bound to that value too. */ - all(this: Bluebird>): Bluebird; + all(this: Bluebird<[Resolvable, Resolvable, Resolvable, Resolvable, Resolvable]>): Bluebird<[T1, T2, T3, T4, T5]>; + all(this: Bluebird<[Resolvable, Resolvable, Resolvable, Resolvable]>): Bluebird<[T1, T2, T3, T4]>; + all(this: Bluebird<[Resolvable, Resolvable, Resolvable]>): Bluebird<[T1, T2, T3]>; + all(this: Bluebird<[Resolvable, Resolvable]>): Bluebird<[T1, T2]>; + all(this: Bluebird<[Resolvable]>): Bluebird<[T1]>; + all(this: Bluebird>>): Bluebird; /** * Same as calling `Promise.all(thisPromise)`. With the exception that if this promise is bound to a value, the returned promise is bound to that value too.