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

12 lines
258 B
TypeScript
Raw Normal View History

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