DefinitelyTyped/types/react-recaptcha/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

39 lines
1.2 KiB
TypeScript

// Type definitions for react-recaptcha 2.3
// Project: https://github.com/appleboy/react-recaptcha
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
// Zach <https://github.com/zzanol>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Component } from "react";
export = Recaptcha;
declare namespace Recaptcha {
interface RecaptchaProps {
className?: string;
elementID?: string;
expiredCallback?(): any;
expiredCallbackName?: string;
onloadCallback?(): any;
onloadCallbackName?: string;
render?: "onload" | "explicit";
size?: "normal" | "compact" | "invisible";
tabindex?: number | string;
theme?: "dark" | "light";
type?: "audio" | "image";
verifyCallback?(response: string): any;
verifyCallbackName?: string;
sitekey?: string;
badge?: "bottomright" | "bottomleft" | "inline";
hl?: string; // https://developers.google.com/recaptcha/docs/language
}
}
declare class Recaptcha extends Component<Recaptcha.RecaptchaProps> {
static propTypes: any;
static defaultProps: Recaptcha.RecaptchaProps;
reset(): void;
execute(): void;
}