From 99e1cbda8d60451cf434a9ddb329190dcdb609ec Mon Sep 17 00:00:00 2001 From: patricklx Date: Wed, 20 May 2020 23:00:46 +0200 Subject: [PATCH] use similar pattern from static all method (#44544) --- types/bluebird/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.