Skip to content

Commit

Permalink
fix(type): fix RequestHandler return type
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Apr 6, 2024
1 parent f01dea1 commit 37d8587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## [next](https://github.com/chimurai/http-proxy-middleware/releases)

- fix(type): fix RequestHandler return type

## [v3.0.0](https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.0)

This release contains some breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -16,7 +16,7 @@ export interface RequestHandler<
TRes = http.ServerResponse,
TNext = NextFunction,
> {
(req: TReq, res: TRes, next?: TNext): void | Promise<void>;
(req: TReq, res: TRes, next?: TNext): Promise<void>;
upgrade: (req: http.IncomingMessage, socket: net.Socket, head: Buffer) => void;
}

Expand Down

0 comments on commit 37d8587

Please sign in to comment.