working on middleware
This commit is contained in:
@ -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<
|
||||||
|
|||||||
Reference in New Issue
Block a user