Update typings for Promise.all() for D5827319

Reviewed By: samwgoldman

Differential Revision: D5830645

fbshipit-source-id: db2bb0715aab58d3601712ee0b080abaa9f8f131
This commit is contained in:
Caleb Meredith 2017-09-26 11:20:07 -07:00 committed by Facebook Github Bot
parent 7ba76a32e1
commit f9246bcbb3
1 changed files with 1 additions and 1 deletions

View File

@ -33,6 +33,6 @@ declare class Promise<+R> {
static resolve<T>(object?: Promise<T> | T): Promise<T>; static resolve<T>(object?: Promise<T> | T): Promise<T>;
static reject<T>(error?: mixed): Promise<T>; static reject<T>(error?: mixed): Promise<T>;
static all<Elem, T:Iterable<Elem>>(promises: T): Promise<$TupleMap<T, typeof $await>>; static all<T: Iterable<mixed>>(promises: T): Promise<$TupleMap<T, typeof $await>>;
static race<T>(promises: Array<Promise<T>>): Promise<T>; static race<T>(promises: Array<Promise<T>>): Promise<T>;
} }