Skip to content

Commit

Permalink
feat(types): Update to include rqdata (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
brdlyptrs authored Aug 2, 2024
1 parent 30e0870 commit de84f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcaptcha/react-hcaptcha",
"version": "1.10.1",
"version": "1.10.2",
"types": "types/index.d.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 1 addition & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
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;
execute(opts?: { async?: boolean, rqdata?: string }): Promise<ExecuteResponse> | void;
}

export = HCaptcha;

0 comments on commit de84f92

Please sign in to comment.