diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-02-03 23:01:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 23:01:03 +0900 |
| commit | 5049870b6e2e8371509ac4984cc4f74674245d87 (patch) | |
| tree | c0c0b4d2d9512aa872e1b5c56c7ef25e349056ba /src/@types | |
| parent | Create type definition for 'recaptcha-promise' (#4068) (diff) | |
| download | sharkey-5049870b6e2e8371509ac4984cc4f74674245d87.tar.gz sharkey-5049870b6e2e8371509ac4984cc4f74674245d87.tar.bz2 sharkey-5049870b6e2e8371509ac4984cc4f74674245d87.zip | |
Create type definition for 'koa-slow' (#4072)
Diffstat (limited to 'src/@types')
| -rw-r--r-- | src/@types/koa-slow.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/@types/koa-slow.d.ts b/src/@types/koa-slow.d.ts new file mode 100644 index 0000000000..bca6a8490b --- /dev/null +++ b/src/@types/koa-slow.d.ts @@ -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; +} |