UNPKG

es-promise-ext

Version:

Native promise extensions for javascript and typescript.

5 lines (4 loc) 228 B
export type AllWithObjectFunction<T> = () => Promise<{ [key in keyof T]: Awaited<T[key]>; }>; export default function allWithObject<T extends Record<string, Promise<unknown> | unknown>>(values: T): AllWithObjectFunction<T>;