UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

11 lines (7 loc) 289 B
// @flow import { Key } from 'react' import { $ObjMap } from '../../../types' type UnpackPromise = <T>(promise: Promise<T>) => T export default function allPromisesObj<T, Key, Spec = { [key: string | number]: Promise<T> }>( promisesObj: Spec, ): Promise<$ObjMap<Spec, UnpackPromise>>