UNPKG

451 BTypeScriptView Raw
1import * as http from "node:http";
2import * as Types from "./types.js";
3export type Request = http.IncomingMessage & {
4 body: any;
5};
6export type Response = http.ServerResponse;
7export type NextCallback = (err?: Error) => void;
8export type Middleware = (req: Request, res: Response, next: NextCallback) => void | Promise<void>;
9export default function middleware(config: Types.MiddlewareConfig): Middleware;
10//# sourceMappingURL=middleware.d.ts.map
\No newline at end of file