summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2020-05-05 10:22:49 +0900
committerGitHub <noreply@github.com>2020-05-05 10:22:49 +0900
commit4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e (patch)
tree8bad0d079776b8fd3e20cfe65b44f205a0763287 /src/@types
parentchore: Update dependencies :rocket: (diff)
parentUpdate hcaptcha.d.ts (diff)
downloadmisskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.tar.gz
misskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.tar.bz2
misskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.zip
Merge pull request #6303 from syuilo/features/hcaptcha
Add support for hCaptcha
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>;
+}