From f57888eb4baeaa254d06e0169db2934fcef93122 Mon Sep 17 00:00:00 2001 From: "Acid Chicken (硫酸鶏)" Date: Sat, 2 May 2020 10:50:29 +0900 Subject: Update src/@types/hcaptcha.d.ts --- src/@types/hcaptcha.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/@types') 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; } -- cgit v1.2.3-freya