Update hcaptcha.d.ts
This commit is contained in:
parent
f57888eb4b
commit
a3ff1bfda7
|
@ -1,11 +1,11 @@
|
||||||
declare module 'hcaptcha' {
|
declare module 'hcaptcha' {
|
||||||
interface IVerifyResponse {
|
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>;
|
export function verify(secret: string, token: string): Promise<IVerifyResponse>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue