4 lines
293 B
TypeScript
4 lines
293 B
TypeScript
|
export declare type NextFunction = () => Promise<any>;
|
||
|
export declare type Middleware<T = any> = (context: T, next: NextFunction) => Promise<any>;
|
||
|
export declare function compose<T = any>(middleware: Middleware<T>[]): (this: any, context: T, next?: Middleware<T> | undefined) => Promise<any>;
|