summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
Diffstat (limited to 'src/@types')
-rw-r--r--src/@types/hcaptcha.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/@types/hcaptcha.d.ts b/src/@types/hcaptcha.d.ts
new file mode 100644
index 0000000000..afed587560
--- /dev/null
+++ b/src/@types/hcaptcha.d.ts
@@ -0,0 +1,11 @@
+declare module 'hcaptcha' {
+ interface IVerifyResponse {
+ success: boolean;
+ challenge_ts: string;
+ hostname: string;
+ credit?: boolean;
+ 'error-codes'?: unknown[];
+ }
+
+ export function verify(secret: string, token: string): Promise<IVerifyResponse>;
+}