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

12 lines
260 B
TypeScript
Raw Normal View History

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