Installation
npm install --save @types/hcaptcha__react-hcaptcha
Summary
This package contains type definitions for @hcaptcha/react-hcaptcha (https://github.com/hCaptcha/react-hcaptcha).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha.
import * as React from 'react';
interface HCaptchaState {
isApiReady: boolean;
isRemoved: boolean;
elementId: string;
captchaId: string;
}
interface HCaptchaProps {
onExpire?: (() => any) | undefined;
onError?: ((event: string) => any) | undefined;
onVerify?: ((token: string) => any) | undefined;
languageOverride?: string | undefined;
sitekey: string;
size?: 'normal' | 'compact' | 'invisible' | undefined;
theme?: 'light' | 'dark' | undefined;
tabIndex?: number | undefined;
id?: string | undefined;
reCaptchaCompat?: boolean | undefined;
}
declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
resetCaptcha(): void;
renderCaptcha(): void;
removeCaptcha(): void;
execute(): void;
}
export = HCaptcha;
Additional Details
- Last updated: Thu, 08 Jul 2021 14:22:47 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Matt Sutkowski.