mirror of
https://github.com/stjornleysi/telegram_glpi.git
synced 2026-01-29 10:20:29 +00:00
7 lines
360 B
TypeScript
7 lines
360 B
TypeScript
import { Context } from './context';
|
|
export type MiddlewareFn<C extends Context> = (ctx: C, next: () => Promise<void>) => Promise<unknown> | void;
|
|
export interface MiddlewareObj<C extends Context> {
|
|
middleware: () => MiddlewareFn<C>;
|
|
}
|
|
export type Middleware<C extends Context> = MiddlewareFn<C> | MiddlewareObj<C>;
|
|
//# sourceMappingURL=middleware.d.ts.map
|