Update src/@types/hcaptcha.d.ts

This commit is contained in:
Acid Chicken (硫酸鶏) 2020-05-02 10:50:29 +09:00 committed by GitHub
parent ee6e720a9c
commit ea4bd60e24

View file

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