Skip to content

Commit

Permalink
fix: refine nodeHandler type as we always return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 29, 2022
1 parent 54a944c commit 1ba6019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface AppUse {
(options: InputLayer): App
}

export type NodeHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void | Promise<void>
export type NodeHandler = (req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>

export interface App extends NodeHandler {
stack: Stack
Expand Down

0 comments on commit 1ba6019

Please sign in to comment.