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

15 lines
227 B
TypeScript
Raw Normal View History

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