Create type definition for 'koa-slow' (#4072)

This commit is contained in:
Acid Chicken (硫酸鶏)
2019-02-03 23:01:03 +09:00
committed by GitHub
parent ce576dea8f
commit 5049870b6e
2 changed files with 15 additions and 1 deletions

14
src/@types/koa-slow.d.ts vendored Normal file
View File

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