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

12 lines
258 B
TypeScript
Raw Normal View History

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