mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
21 lines
554 B
TypeScript
21 lines
554 B
TypeScript
// Type definitions for koa v2.3.1
|
|
// Project: https://github.com/koajs/compose
|
|
// Definitions by: jKey Lu <https://github.com/jkeylu>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "koa-compose" {
|
|
function compose(middleware: compose.Middleware[]): compose.ComposedMiddleware;
|
|
|
|
namespace compose {
|
|
interface Middleware {
|
|
(next?: void): IterableIterator<any>;
|
|
}
|
|
|
|
interface ComposedMiddleware {
|
|
(): IterableIterator<any>;
|
|
}
|
|
}
|
|
|
|
export = compose;
|
|
}
|