Skip to content

Commit 1ba6019

Browse files
committed
fix: refine nodeHandler type as we always return promise
1 parent 54a944c commit 1ba6019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface AppUse {
3636
(options: InputLayer): App
3737
}
3838

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

4141
export interface App extends NodeHandler {
4242
stack: Stack

0 commit comments

Comments
 (0)