UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

13 lines (10 loc) 297 B
import { FastifyReply, FastifyRequest } from "fastify"; export type HookHandlerName = | "onRequest" | "preHandler" | "preValidation" | "preSerialization"; export type HookHandler = { name: HookHandlerName; execute: (request: FastifyRequest, reply: FastifyReply) => Promise<void>; };