DefinitelyTyped/types/react-recaptcha-v3/index.d.ts
Alessandro Rabitti 3a13a0d024 [@types/react-recaptcha-v3] Add react-recaptcha-v3 definitions (#41585)
* Add react-recaptcha-v3 definitions

* Fix react-recaptcha-v3 type definition comment in index.d.ts

* Fix react-recaptcha-v3 type definition comment in index.d.ts

* Fix import ReCaptcha for tests
2020-01-17 11:38:46 -05:00

26 lines
734 B
TypeScript

// Type definitions for react-recaptcha-v3 1.1
// Project: https://github.com/codeep/react-recaptcha-v3
// Definitions by: Alessandro Rabitti <https://github.com/silversonicaxel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Component } from "react";
export = ReCaptcha;
declare namespace ReCaptcha {
interface ReCaptchaProps {
elementID?: string;
sitekey: string;
action: string;
verifyCallback?(response: string): any;
verifyCallbackName?: string;
}
}
declare class ReCaptcha extends Component<ReCaptcha.ReCaptchaProps> {
static propTypes: any;
static defaultProps: ReCaptcha.ReCaptchaProps;
execute(): void;
}