UNPKG
@xlink-network/xlink-sdk
Version:
latest (0.4.7)
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
XLINK js SDK
github.com/xlink-network/xlink-sdk
xlink-network/xlink-sdk
@xlink-network/xlink-sdk
/
lib
/
utils
/
promiseHelpers.d.mts
7 lines
(5 loc)
•
225 B
text/typescript
View Raw
1
2
3
4
5
6
7
type
UnboxPromise
<T> = T
extends
PromiseLike
<infer R> ? R :
never
;
declare
function
props<I
extends
Record
<
string
,
any
>>(
inputs
: I):
Promise
<{ [K
in
keyof I]:
UnboxPromise
<I[K]>; }>;
export
{
type
UnboxPromise
, props };