@types/react-recaptcha
Advanced tools
Comparing version
@@ -1,4 +0,5 @@ | ||
// Type definitions for react-recaptcha 2.2 | ||
// 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 | ||
@@ -8,24 +9,30 @@ // TypeScript Version: 2.3 | ||
import { Component } from "react"; | ||
export = Recaptcha; | ||
interface RecaptchaProps { | ||
className?: string; | ||
elementID?: string; | ||
expiredCallback?(): any; | ||
expiredCallbackName?: string; | ||
onloadCallback?(): any; | ||
onloadCallbackName?: string; | ||
render?: string; | ||
size?: string; | ||
tabindex?: string; | ||
theme?: "dark" | "light"; | ||
type?: string; | ||
verifyCallback?(response: string): any; | ||
verifyCallbackName?: string; | ||
sitekey?: string; | ||
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<RecaptchaProps> { | ||
declare class Recaptcha extends Component<Recaptcha.RecaptchaProps> { | ||
static propTypes: any; | ||
static defaultProps: RecaptchaProps; | ||
static defaultProps: Recaptcha.RecaptchaProps; | ||
reset(): void; | ||
} |
{ | ||
"name": "@types/react-recaptcha", | ||
"version": "2.2.4", | ||
"version": "2.3.0", | ||
"description": "TypeScript definitions for react-recaptcha", | ||
@@ -9,3 +9,9 @@ "license": "MIT", | ||
"name": "Mohamed Hegazy", | ||
"url": "https://github.com/mhegazy" | ||
"url": "https://github.com/mhegazy", | ||
"githubUsername": "mhegazy" | ||
}, | ||
{ | ||
"name": "Zach", | ||
"url": "https://github.com/zzanol", | ||
"githubUsername": "zzanol" | ||
} | ||
@@ -22,5 +28,4 @@ ], | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "82c7bf713f8c086c988cef6313955f34924f93fcc80b47ff8b11fdca5d0e2f2f", | ||
"typesPublisherContentHash": "81ebdc9e8c138c1727fa71fe962c9e1a6976ce0067cf50727ab9084e85d5b1f7", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 23 Jun 2017 17:37:20 GMT | ||
* Last updated: Tue, 02 Jan 2018 20:47:02 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Mohamed Hegazy <https://github.com/mhegazy>. | ||
These definitions were written by Mohamed Hegazy <https://github.com/mhegazy>, Zach <https://github.com/zzanol>. |
3775
17.75%33
22.22%