npm.io
1.1.5 • Published 2 years ago

@types/react-recaptcha-v3

Licence
MIT
Version
1.1.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-recaptcha-v3

Summary

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

Details

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

index.d.ts

import { Component } from "react";

export namespace ReCaptcha {
    interface ReCaptchaProps {
        elementID?: string | undefined;
        sitekey: string;
        action: string;
        verifyCallback?(response: string): void;
        verifyCallbackName?: string | undefined;
    }
}

export class ReCaptcha extends Component<ReCaptcha.ReCaptchaProps> {
    static propTypes: any;
    static defaultProps: ReCaptcha.ReCaptchaProps;
    execute(): void;
}

export function loadReCaptcha(siteKey: string): void;

Additional Details

  • Last updated: Wed, 03 Jan 2024 0115 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Alessandro Rabitti, and Ivan Siacho.