// Type definitions for mali 1.1 // Project: https://github.com/malijs/mali-compose // Definitions by: Daniel Byrne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import { Context } from "mali"; declare function compose( middleware: ReadonlyArray< (ctx: Context, next: () => Promise) => Promise > ): (context: Context, next: () => Promise) => Promise; export = compose;