working on middleware

This commit is contained in:
2025-01-22 21:48:03 +03:00
parent 8138140533
commit 5cbe6dcf61

View File

@ -8,6 +8,7 @@ type RequestHandler<S extends string> = (
export type Middleware = ( export type Middleware = (
c: Context<string>, c: Context<string>,
next: () => Promise<Response>,
) => Promise<Response | undefined> | Response | undefined; ) => Promise<Response | undefined> | Response | undefined;
type MethodHandlers<S extends string> = Partial< type MethodHandlers<S extends string> = Partial<