diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2020-05-05 10:22:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 10:22:49 +0900 |
| commit | 4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e (patch) | |
| tree | 8bad0d079776b8fd3e20cfe65b44f205a0763287 /src/@types | |
| parent | chore: Update dependencies :rocket: (diff) | |
| parent | Update hcaptcha.d.ts (diff) | |
| download | misskey-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.ts | 11 |
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>; +} |