UNPKG
@malijs/onerror
Version:
latest (0.3.1)
undefined (0.4.0)
0.4.0
0.3.1
0.3.0
On error middleware for Mali
github.com/malijs/onerror
malijs/onerror
@malijs/onerror
/
index.d.ts
7 lines
(5 loc)
•
183 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Context
}
from
"mali"
;
declare
function
onError
(
fn
: (err:
Error
, ctx: Context) =>
any
):
(
ctx
:
Context
,
next
?: () =>
Promise
<
any
>
) =>
Promise
<
void
>;
export
= onError;