diff --git a/types/index.d.ts b/types/index.d.ts index 254382c..f105ef4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -50,6 +50,8 @@ declare class HCaptcha extends React.Component { getResponse(): string; setData(data: object): void; isReady(): boolean; + execute(opts: { async: true, rqdata?: string }): Promise; + execute(opts?: { async: false, rqdata?: string }): void; execute(opts?: { async?: boolean, rqdata?: string }): Promise | void; }