UNPKG
@prelude/function
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
0.0.3
Function module.
@prelude/function
/
mjs
/
timeout.d.ts
3 lines
(2 loc)
•
120 B
TypeScript
View Raw
1
2
3
declare
const
timeout
: <T, U>
(
wait
:
number
,
f
: () =>
Promise
<T>,
g
: () => U
) =>
Promise
<T | U>;
export
default
timeout;