From f57888eb4baeaa254d06e0169db2934fcef93122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 2 May 2020 10:50:29 +0900 Subject: [PATCH] Update src/@types/hcaptcha.d.ts --- src/@types/hcaptcha.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/@types/hcaptcha.d.ts b/src/@types/hcaptcha.d.ts index ef3d44256..694c8388a 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; }