summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
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;
+}