mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
26 lines
734 B
TypeScript
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;
|
|
}
|