|
|
@ -7,7 +7,7 @@ import "fastify-multipart"; |
|
|
|
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 HandlerMethod<T = undefined> = (request: MiddlewareRequest<T>, reply: FastifyReply, next?: any) => void; |
|
|
|
export type MiddlewareMethod<T> = (request: MiddlewareRequest<T>, reply: FastifyReply, next: () => void) => void; |
|
|
|
export type HandlerMethodWithMiddleware<T = undefined> = (request: MiddlewareRequest<MiddlewareParams<T>>, reply: FastifyReply) => void; |
|
|
|
export type IteratorNext = () => void; |
|
|
|