summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-02-03 22:21:55 +0900
committerGitHub <noreply@github.com>2019-02-03 22:21:55 +0900
commitce576dea8fe3356e919723f71d7ea09d378f3bea (patch)
tree39b443c01ccbbebb8e49513bf304cbcd1d15767a /src/@types
parentCreate new type definition for 'escape-regexp' (#4058) (diff)
downloadsharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.tar.gz
sharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.tar.bz2
sharkey-ce576dea8fe3356e919723f71d7ea09d378f3bea.zip
Create type definition for 'recaptcha-promise' (#4068)
Diffstat (limited to 'src/@types')
-rw-r--r--src/@types/recaptcha-promise.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/@types/recaptcha-promise.d.ts b/src/@types/recaptcha-promise.d.ts
new file mode 100644
index 0000000000..cfbd5eebf2
--- /dev/null
+++ b/src/@types/recaptcha-promise.d.ts
@@ -0,0 +1,16 @@
+declare module 'recaptcha-promise' {
+ interface IVerifyOptions {
+ secret_key?: string;
+ }
+
+ interface IVerify {
+ (response: string, remoteAddress?: string): Promise<boolean>;
+ init(options: IVerifyOptions): IVerify;
+ }
+
+ namespace recaptchaPromise {} // Hack
+
+ const verify: IVerify;
+
+ export = verify;
+}