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