summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-02-03 23:01:03 +0900
committerGitHub <noreply@github.com>2019-02-03 23:01:03 +0900
commit5049870b6e2e8371509ac4984cc4f74674245d87 (patch)
treec0c0b4d2d9512aa872e1b5c56c7ef25e349056ba /src/@types
parentCreate type definition for 'recaptcha-promise' (#4068) (diff)
downloadsharkey-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.ts14
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;
+}