@types/react-recaptcha
Advanced tools
Comparing version
@@ -14,18 +14,18 @@ // Type definitions for react-recaptcha 2.3 | ||
interface RecaptchaProps { | ||
className?: string; | ||
elementID?: string; | ||
className?: string | undefined; | ||
elementID?: string | undefined; | ||
expiredCallback?(): any; | ||
expiredCallbackName?: string; | ||
expiredCallbackName?: string | undefined; | ||
onloadCallback?(): any; | ||
onloadCallbackName?: string; | ||
render?: "onload" | "explicit"; | ||
size?: "normal" | "compact" | "invisible"; | ||
tabindex?: number | string; | ||
theme?: "dark" | "light"; | ||
type?: "audio" | "image"; | ||
onloadCallbackName?: string | undefined; | ||
render?: "onload" | "explicit" | undefined; | ||
size?: "normal" | "compact" | "invisible" | undefined; | ||
tabindex?: number | string | undefined; | ||
theme?: "dark" | "light" | undefined; | ||
type?: "audio" | "image" | undefined; | ||
verifyCallback?(response: string): any; | ||
verifyCallbackName?: string; | ||
sitekey?: string; | ||
badge?: "bottomright" | "bottomleft" | "inline"; | ||
hl?: string; // https://developers.google.com/recaptcha/docs/language | ||
verifyCallbackName?: string | undefined; | ||
sitekey?: string | undefined; | ||
badge?: "bottomright" | "bottomleft" | "inline" | undefined; | ||
hl?: string | undefined; // https://developers.google.com/recaptcha/docs/language | ||
} | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "@types/react-recaptcha", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"description": "TypeScript definitions for react-recaptcha", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha", | ||
"license": "MIT", | ||
@@ -19,5 +20,7 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-recaptcha" | ||
}, | ||
@@ -28,4 +31,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "d4be92f530224fbf91ca85e2772e4327fdcf8c4ff9f0c648b91a941fc53d19fd", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "8825a257f58fe931f171fed7f896c689056a5d6f1053df0ecab7071468b5ef2a", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,52 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha/index.d.ts) | ||
````ts | ||
// 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 | ||
Additional Details | ||
* Last updated: Mon, 06 Aug 2018 21:55:28 GMT | ||
* Dependencies: react | ||
import { Component } from "react"; | ||
export = Recaptcha; | ||
declare namespace Recaptcha { | ||
interface RecaptchaProps { | ||
className?: string | undefined; | ||
elementID?: string | undefined; | ||
expiredCallback?(): any; | ||
expiredCallbackName?: string | undefined; | ||
onloadCallback?(): any; | ||
onloadCallbackName?: string | undefined; | ||
render?: "onload" | "explicit" | undefined; | ||
size?: "normal" | "compact" | "invisible" | undefined; | ||
tabindex?: number | string | undefined; | ||
theme?: "dark" | "light" | undefined; | ||
type?: "audio" | "image" | undefined; | ||
verifyCallback?(response: string): any; | ||
verifyCallbackName?: string | undefined; | ||
sitekey?: string | undefined; | ||
badge?: "bottomright" | "bottomleft" | "inline" | undefined; | ||
hl?: string | undefined; // 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; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 22:41:27 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Mohamed Hegazy <https://github.com/mhegazy>, Zach <https://github.com/zzanol>. | ||
These definitions were written by [Mohamed Hegazy](https://github.com/mhegazy), and [Zach](https://github.com/zzanol). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5710
50.74%0
-100%59
247.06%