Skip to content

Commit 06f6dc9

Browse files
authored
fix(types): Re-add typing overloads for the execute method (#234)
1 parent de84f92 commit 06f6dc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
5050
getResponse(): string;
5151
setData(data: object): void;
5252
isReady(): boolean;
53+
execute(opts: { async: true, rqdata?: string }): Promise<ExecuteResponse>;
54+
execute(opts?: { async: false, rqdata?: string }): void;
5355
execute(opts?: { async?: boolean, rqdata?: string }): Promise<ExecuteResponse> | void;
5456
}
5557

0 commit comments

Comments
 (0)