New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/grecaptcha

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/grecaptcha

TypeScript definitions for Google Recaptcha

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
431K
increased by3.37%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/grecaptcha

Summary

This package contains type definitions for Google Recaptcha (https://www.google.com/recaptcha).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/grecaptcha/v0.

index.d.ts

// Type definitions for Google Recaptcha
// Project: https://www.google.com/recaptcha
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class Recaptcha {
    constructor();
    static reload(): void;
    static switch_type(newtype: string): void;
    static showhelp(): void;
    static get_challenge(): string;
    static get_response(): string;
    static focus_response_field(): void;
    static create(public_key: string, element: string, options: RecaptchaOptions): void;
    static destroy(): void;
}

interface RecaptchaOptions {
    tabindex?: number | undefined;
    theme?: string | undefined;
    callback?: Function | undefined;
    lang?: string | undefined;
    custom_theme_widget?: string | undefined;
    custom_translations?: CustomTranslations | undefined;
}

interface CustomTranslations {
    visual_challenge?: string | undefined;
    audio_challenge?: string | undefined;
    refresh_btn?: string | undefined;
    instructions_visual?: string | undefined;
    instructions_audio?: string | undefined;
    help_btn?: string | undefined;
    play_again?: string | undefined;
    cant_hear_this?: string | undefined;
    incorrect_try_again?: string | undefined;
    image_alt_text?: string | undefined;
    privacy_and_terms?: string | undefined;
}

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:34:45 GMT
  • Dependencies: none
  • Global values: Recaptcha

Credits

These definitions were written by DefinitelyTyped.

FAQs

Package last updated on 23 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc