(keys: K, promises: P)
| 50 | } |
| 51 | |
| 52 | export function objectifyPromises< |
| 53 | K extends string[], |
| 54 | P extends PromiseLike<any>[], |
| 55 | >(keys: K, promises: P): { [key in K[number]]: P[number] } { |
| 56 | return objFromEntries( |
| 57 | keys.map((key, index) => [key, promises[index]]), |
| 58 | ) as any; |
| 59 | } |
| 60 | |
| 61 | export async function objectifyPromiseResults< |
| 62 | K extends string[], |
nothing calls this directly
no test coverage detected