1 | import { Context } from './context';
|
2 | export type MiddlewareFn<C extends Context> = (ctx: C, next: () => Promise<void>) => Promise<unknown> | void;
|
3 | export interface MiddlewareObj<C extends Context> {
|
4 | middleware: () => MiddlewareFn<C>;
|
5 | }
|
6 | export type Middleware<C extends Context> = MiddlewareFn<C> | MiddlewareObj<C>;
|
7 | //# sourceMappingURL=middleware.d.ts.map |
\ | No newline at end of file |