Skip to content

Commit

Permalink
add types for HCaptcha.isReady() (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
zemlanin authored Dec 15, 2023
1 parent 84cad37 commit 47efe90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
getRespKey(): string;
getResponse(): string;
setData(data: object): void;
isReady(): boolean;
execute(opts: { async: true }): Promise<ExecuteResponse>;
execute(opts?: { async: false }): void;
execute(opts?: { async: boolean }): Promise<ExecuteResponse> | void;
Expand Down

0 comments on commit 47efe90

Please sign in to comment.