Sharkey/src/@types/hcaptcha.d.ts
Acid Chicken (硫酸鶏) 7860839220
Add support for hCaptcha
2020-04-28 14:29:33 +09:00

9 lines
214 B
TypeScript

declare module 'hcaptcha' {
export function verify(secret: string, token: string): Promise<{
success: boolean;
challenge_ts: string;
hostname: string;
credit?: boolean;
'error-codes'?: unknown[];
}>;
}