Skip to content

Commit f4f4a77

Browse files
authored
fix(type): fix RequestHandler return type (#980)
1 parent f01dea1 commit f4f4a77

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [next](https://github.com/chimurai/http-proxy-middleware/releases)
4+
5+
- fix(type): fix RequestHandler return type
6+
37
## [v3.0.0](https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.0)
48

59
This release contains some breaking changes.

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface RequestHandler<
1616
TRes = http.ServerResponse,
1717
TNext = NextFunction,
1818
> {
19-
(req: TReq, res: TRes, next?: TNext): void | Promise<void>;
19+
(req: TReq, res: TRes, next?: TNext): Promise<void>;
2020
upgrade: (req: http.IncomingMessage, socket: net.Socket, head: Buffer) => void;
2121
}
2222

0 commit comments

Comments
 (0)