yumechi-no-kuni/src/@types/koa-slow.d.ts
2019-02-03 23:01:03 +09:00

14 lines
225 B
TypeScript

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