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