mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
20 lines
498 B
TypeScript
20 lines
498 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 function compose(middleware: compose.Middleware[]): compose.ComposedMiddleware;
|
|
|
|
declare namespace compose {
|
|
interface Middleware {
|
|
(next?: void): IterableIterator<any>;
|
|
}
|
|
|
|
interface ComposedMiddleware {
|
|
(): IterableIterator<any>;
|
|
}
|
|
}
|
|
|
|
export = compose;
|