UNPKG

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