jsev
Version:
Environment for building Web API's.
12 lines (11 loc) • 462 B
TypeScript
import { Middleware } from "koa";
import { Environment } from "../Environment";
export interface IMiddleware {
name: string;
rank: number;
func: Middleware;
apply: () => void;
}
export declare type MiddlewareFactory = (env: Environment) => IMiddleware;
export declare function applyMiddlewares(env: Environment): Promise<void>;
export declare function loadMiddlewares(appRootPath: string): Promise<import("../types").IObject<MiddlewareFactory>>;