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

12 lines
258 B
TypeScript
Raw Normal View History

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