Home > @wixc3/common > awaitRecord
Awaits a record of promises, and returns a record of their results.
Signature:
export declare function awaitRecord<In extends Record<Key, Promise<any>>, Out extends {
[K in keyof In]: In[K] extends Promise<infer U> ? U : never;
}, Key extends string>(obj: In): Promise<Out>;
Parameter | Type | Description |
---|---|---|
obj | In |
Returns:
Promise<Out>