Skip to content

Commit

Permalink
fix(types): Re-add typing overloads for the execute method (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
JAD3N authored Aug 7, 2024
1 parent de84f92 commit 06f6dc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
getResponse(): string;
setData(data: object): void;
isReady(): boolean;
execute(opts: { async: true, rqdata?: string }): Promise<ExecuteResponse>;
execute(opts?: { async: false, rqdata?: string }): void;
execute(opts?: { async?: boolean, rqdata?: string }): Promise<ExecuteResponse> | void;
}

Expand Down

0 comments on commit 06f6dc9

Please sign in to comment.