DefinitelyTyped/types/mali-compose/index.d.ts
2018-11-20 08:54:34 -08:00

16 lines
491 B
TypeScript

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