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

10 lines
214 B
TypeScript
Raw Normal View History

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