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