mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
15 lines
322 B
TypeScript
15 lines
322 B
TypeScript
/// <reference path="koa-compose-2.3.1.d.ts" />
|
|
|
|
import compose = require('koa-compose');
|
|
|
|
var fn1: compose.Middleware = function *(next: void) {
|
|
console.log('in fn1');
|
|
yield next;
|
|
}
|
|
|
|
var fn2: compose.Middleware = function *(next: void) {
|
|
console.log('in fn2');
|
|
yield next;
|
|
}
|
|
|
|
var fn = compose([fn1, fn2]); |