calckey/src/@types/hcaptcha.d.ts

10 lines
214 B
TypeScript
Raw Normal View History

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