Sharkey/src/@types/hcaptcha.d.ts
Acid Chicken (硫酸鶏) a3ff1bfda7
Update hcaptcha.d.ts
2020-05-02 10:51:12 +09:00

11 lines
258 B
TypeScript

declare module 'hcaptcha' {
interface IVerifyResponse {
success: boolean;
challenge_ts: string;
hostname: string;
credit?: boolean;
'error-codes'?: unknown[];
}
export function verify(secret: string, token: string): Promise<IVerifyResponse>;
}