Browse Source

Export FastifyReply from webserver package

dev
David Ludwig 4 years ago
parent
commit
96d6e10484
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      packages/webserver/src/middleware/handler.ts

+ 3
- 0
packages/webserver/src/middleware/handler.ts View File

@ -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;


Loading…
Cancel
Save