0
0
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:
Yusuke Wada 2022-05-15 16:03:32 +09:00 committed by GitHub
parent 196f5d5e22
commit 63d2e1a70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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