mirror of
https://github.com/honojs/hono.git
synced 2024-11-25 13:19:30 +01:00
fix: fix type check warnings (#233)
This commit is contained in:
parent
196f5d5e22
commit
63d2e1a70a
@ -17,7 +17,7 @@ declare global {
|
||||
|
||||
export type Handler<RequestParamKeyType = string, E = Env> = (
|
||||
c: Context<RequestParamKeyType, E>,
|
||||
next?: Next
|
||||
next: Next
|
||||
) => Response | Promise<Response> | void | Promise<void>
|
||||
export type NotFoundHandler<E = Env> = (c: Context<string, E>) => Response
|
||||
export type ErrorHandler<E = Env> = (err: Error, c: Context<string, E>) => Response
|
||||
|
Loading…
Reference in New Issue
Block a user