monkeeShark/src/@types/koa-slow.d.ts

15 lines
228 B
TypeScript
Raw Normal View History

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