@athenna/http
Version:
The Athenna Http server. Built on top of fastify.
14 lines (13 loc) • 379 B
TypeScript
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { Context } from '#src/types/contexts/Context';
export type ErrorContext = Context & {
error: any;
};
export type ErrorHandler = (ctx: ErrorContext) => Promise<void>;