summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2020-05-02 10:50:29 +0900
committerGitHub <noreply@github.com>2020-05-02 10:50:29 +0900
commitf57888eb4baeaa254d06e0169db2934fcef93122 (patch)
tree359c503b36e02788a71eba66369374f1d6ec432b /src/@types
parentUpdate src/server/api/private/signup.ts (diff)
downloadsharkey-f57888eb4baeaa254d06e0169db2934fcef93122.tar.gz
sharkey-f57888eb4baeaa254d06e0169db2934fcef93122.tar.bz2
sharkey-f57888eb4baeaa254d06e0169db2934fcef93122.zip
Update src/@types/hcaptcha.d.ts
Diffstat (limited to 'src/@types')
-rw-r--r--src/@types/hcaptcha.d.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/@types/hcaptcha.d.ts b/src/@types/hcaptcha.d.ts
index ef3d44256c..694c8388a9 100644
--- a/src/@types/hcaptcha.d.ts
+++ b/src/@types/hcaptcha.d.ts
@@ -1,9 +1,11 @@
declare module 'hcaptcha' {
- export function verify(secret: string, token: string): Promise<{
+ interface IVerifyResponse {
success: boolean;
challenge_ts: string;
hostname: string;
credit?: boolean;
'error-codes'?: unknown[];
- }>;
+ }
+
+ export function verify(secret: string, token: string): Promise<IVerifyResponse>;
}