UNPKG

@malijs/onerror

Version:

On error middleware for Mali

7 lines (5 loc) 183 B
import { Context } from "mali"; declare function onError ( fn: (err: Error, ctx: Context) => any ): (ctx: Context, next?: () => Promise<any>) => Promise<void>; export = onError;