Update hcaptcha.d.ts

This commit is contained in:
Acid Chicken (硫酸鶏) 2020-05-02 10:51:12 +09:00 committed by GitHub
parent ea4bd60e24
commit 79f617d12e

View File

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