From de84f92f6398f6dd98bb33c38f729c31afd08d35 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Fri, 2 Aug 2024 14:39:35 -0700 Subject: [PATCH] feat(types): Update to include rqdata (#233) --- package.json | 2 +- types/index.d.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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;