2.3.7 • Published 5 months ago

@types/react-recaptcha v2.3.7

Weekly downloads
5,920
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install --save @types/react-recaptcha

Summary

This package contains type definitions for react-recaptcha (https://github.com/appleboy/react-recaptcha).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha.

index.d.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

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
  • Global values: none

Credits

These definitions were written by Mohamed Hegazy, and Zach.

2.3.7

5 months ago

2.3.6

6 months ago

2.3.5

7 months ago

2.3.4

3 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago