iceshrimp-161sh/src/@types/hcaptcha.d.ts

10 lines
214 B
TypeScript
Raw Normal View History

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