Skip to content

Commit

Permalink
feat: typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
mwelwankuta committed Apr 19, 2024
1 parent 19dcf78 commit e9ee80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Request<T extends any> extends IncomingMessage {
}

export interface HandlerCallback {
(req: Request<any>, res: Response): void;
(req: Request<any>, res: Response, next?:HandlerFunction): void;
}

type RequestMethod =
Expand Down

0 comments on commit e9ee80a

Please sign in to comment.