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 03ae65bc25
commit 292b19d339
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ 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?: any): Promise<T>; static reject<T>(error?: any): 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>;
// Non-standard APIs // Non-standard APIs