Installation
npm install --save @types/react-recaptcha-v3
Summary
This package contains type definitions for react-recaptcha-v3 (https://github.com/codeep/react-recaptcha-v3).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha-v3.
import { Component } from "react";
export namespace ReCaptcha {
interface ReCaptchaProps {
elementID?: string | undefined;
sitekey: string;
action: string;
verifyCallback?(response: string): void;
verifyCallbackName?: string | undefined;
}
}
export class ReCaptcha extends Component<ReCaptcha.ReCaptchaProps> {
static propTypes: any;
static defaultProps: ReCaptcha.ReCaptchaProps;
execute(): void;
}
export function loadReCaptcha(siteKey: string): void;
Additional Details
- Last updated: Wed, 03 Jan 2024 01:30:15 GMT
- Dependencies: @types/react
Credits
These definitions were written by Alessandro Rabitti, and Ivan Siacho.