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 58b2ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
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 58b2ffb

Please sign in to comment.