react-google-invisible-recaptcha
react-google-invisible-recaptcha copied to clipboard
Added typescript types
Thank you for this.
Please consider adding these types for Typescript users.
Thank you for this.
Please consider adding these types for Typescript users.
if you want to use it by using typescript
- Create a
recaptcha.d.ts
file in your project folder - Add this code into
recaptcha.d.ts
:
declare module "react-google-invisible-recaptcha" {
export default class GoogleRecaptcha extends React.Component<{
sitekey: string;
locale?: string;
onResolved?: () => void;
badge?: "bottomright" | "bottomleft" | "inline";
nonce?: string;
onExpired?: () => void;
onError?: () => void;
onLoaded?: () => void;
style?: CSSStyleDeclaration;
tabindex?: number;
}> {}
}