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