diff --git a/package.json b/package.json index 686226e..efdb8ef 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/index.d.ts b/types/index.d.ts index c8e76b4..254382c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -50,9 +50,7 @@ declare class HCaptcha extends React.Component { getResponse(): string; setData(data: object): void; isReady(): boolean; - execute(opts: { async: true }): Promise; - execute(opts?: { async: false }): void; - execute(opts?: { async: boolean }): Promise | void; + execute(opts?: { async?: boolean, rqdata?: string }): Promise | void; } export = HCaptcha;