UNPKG
@grindife/supamelon
Version:
latest (0.28.0-1.18)
0.28.0-1.18
0.28.0-1.17
0.28.0-1.16
0.28.0-1.15
0.28.0-1.14
0.28.0-1.13
0.28.0-1.12
0.28.0-1.11
0.28.0-1.10
0.28.0-1.9
0.28.0-1.8
0.28.0-1.7
0.28.0-1.6
0.28.0-1.5
0.28.0-1.4
0.28.0-1.3
0.28.0-1.2
0.28.0-1.1
Combination of supabase and watermelondb
github.com/Nozbe/WatermelonDB
Grindife/supamelon
@grindife/supamelon
/
utils
/
fp
/
allPromisesObj
/
index.d.ts
11 lines
(7 loc)
•
299 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// @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
>>