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; }