Skip to content
Myr

feat: `notFound` support await/async (#140)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent ac8efa7 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/context.ts+1 added-1 removed
modified:src/hono.ts+1 added-1 removed
19 unmodified lines
20 c: Context<RequestParamKeyType>,21 next?: Function22) => Response | Promise<Response>23export type MiddlewareHandler = (c: Context, next: Function) => Promise<void>24export type NotFoundHandler = (c: Context) => Response24export type NotFoundHandler = (c: Context) => Response | Promise<Response>25export type ErrorHandler = (err: Error, c: Context) => Response2627// eslint-disable-next-line @typescript-eslint/no-unused-vars28type ParamKeyName<NameWithPattern> = NameWithPattern extends `${infer Name}{${infer _Pattern}`
197 unmodified lines