mirror of https://github.com/status-im/metro.git
Update typings for Promise.all() for D5827319
Reviewed By: samwgoldman Differential Revision: D5830645 fbshipit-source-id: db2bb0715aab58d3601712ee0b080abaa9f8f131
This commit is contained in:
parent
7ba76a32e1
commit
f9246bcbb3
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue