|
|
@ -3,6 +3,9 @@ import "fastify-cookie"; |
|
|
|
import "fastify-formbody"; |
|
|
|
import "fastify-multipart"; |
|
|
|
|
|
|
|
// Include the FastifyReply type
|
|
|
|
export { FastifyReply } from "fastify"; |
|
|
|
|
|
|
|
export type MiddlewareRequest<P> = FastifyRequest & { middlewareParams: P }; |
|
|
|
export type HandlerMethod<T = undefined> = (request: MiddlewareRequest<T>, reply: FastifyReply, next?: any) => void; |
|
|
|
export type MiddlewareMethod<T> = (request: MiddlewareRequest<T>, reply: FastifyReply, next: () => void) => void; |
|
|
|