export async function promiseAllObject( input: Input, ): Promise<{ [K in keyof Input]: Awaited }> { const result: any = {} await Promise.all( Object.entries(input).map(async ([key, promise]) => { result[key] = await promise }), ) return result }