PromiseAll
HardCreate generic PromiseAll<T> which returns the type of resolved values array from Promise array.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
PromiseAll
HardCreate generic PromiseAll<T> which returns the type of resolved values array from Promise array.
Examples:
Input 1: type Result = PromiseAll<[Promise<string>, Promise<number>]>
Output 1: [string, number]
Output
Run your code to see results.