Sharkey/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 16:52:46 +02:00
url?: RegExp;
delay?: number;
}
function slow(options?: ISlowOptions): Middleware;
2019-03-23 06:50:10 +02:00
namespace slow {} // Hack
export = slow;
}