2019-02-03 23:01:03 +09:00
|
|
|
declare module 'koa-slow' {
|
|
|
|
import { Middleware } from 'koa';
|
|
|
|
|
|
|
|
interface ISlowOptions {
|
2019-02-03 23:52:46 +09:00
|
|
|
url?: RegExp;
|
|
|
|
delay?: number;
|
2019-02-03 23:01:03 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
function slow(options?: ISlowOptions): Middleware;
|
|
|
|
|
2019-02-03 23:52:46 +09:00
|
|
|
namespace slow { } // Hack
|
2019-02-03 23:01:03 +09:00
|
|
|
|
|
|
|
export = slow;
|
|
|
|
}
|