From e9ee80ae0817f009f7b6930c4d16adb7b59c08fd Mon Sep 17 00:00:00 2001 From: Mwelwa Nkuta Date: Fri, 19 Apr 2024 07:46:19 +0200 Subject: [PATCH] feat: typescript support --- src/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index 7167a00..9e35298 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -15,7 +15,7 @@ export interface Request extends IncomingMessage { } export interface HandlerCallback { - (req: Request, res: Response): void; + (req: Request, res: Response, next?:HandlerFunction): void; } type RequestMethod =