Skip to content

Commit

Permalink
add ekey to onVerify type signature (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
basicBrogrammer authored Mar 1, 2022
1 parent 9816a96 commit 86c1f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface HCaptchaProps {
onClose?: () => any;
onChalExpired?: () => any;
onError?: (event: string) => any;
onVerify?: (token: string) => any;
onVerify?: (token: string, ekey: string) => any;
onLoad?: () => any;
languageOverride?: string;
sitekey: string;
Expand All @@ -39,7 +39,7 @@ declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
resetCaptcha(): void;
renderCaptcha(): void;
removeCaptcha(): void;
execute(opts: { async: true }): Promise<ExecuteResponse>
execute(opts: { async: true }): Promise<ExecuteResponse>;
execute(opts?: { async: false }): void;
execute(opts?: { async: boolean }): Promise<ExecuteResponse> | void;
}
Expand Down

0 comments on commit 86c1f31

Please sign in to comment.