diff options
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>; +} |