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

15 lines
225 B
TypeScript
Raw Normal View History

declare module 'koa-slow' {
import { Middleware } from 'koa';
interface ISlowOptions {
url?: RegExp
delay?: number
}
function slow(options?: ISlowOptions): Middleware;
namespace slow {} // Hack
export = slow;
}