UNPKG
@daisugi/kintsugi
Version:
latest (0.7.2)
0.7.2
0.7.1
0.7.0
0.5.2
0.5.0
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.9
0.3.8
0.3.7
0.3.4
0.3.3
0.3.2
0.3.0
0.2.0
0.1.0
0.0.4
0.0.3
0.0.2
Kintsugi is a set of utilities to help build a fault tolerant services.
daisugiland/daisugi
@daisugi/kintsugi
/
dist
/
types
/
with_timeout.d.ts
7 lines
•
273 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
AsyncFn
}
from
'./types.js'
;
interface
WithTimeoutOpts
{
maxTimeMs
?:
number
; }
export
declare
function
withTimeout
(
fn
:
AsyncFn
,
opts
?:
WithTimeoutOpts
):
(
this
:
unknown
, ...
args
:
any
[]
) =>
Promise
<
any
>;
export
{};
//# sourceMappingURL=with_timeout.d.ts.map