Socket
Book a DemoInstallSign in
Socket

@hcaptcha/types

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hcaptcha/types

hCaptcha Type Definitions

1.0.4
latest
npmnpm
Version published
Weekly downloads
19K
13.84%
Maintainers
3
Weekly downloads
 
Created
Source

hCaptcha TypeScript Definitions

TypeScript module for hcaptcha global variable.

Installation

yarn add -D @hcaptcha/types

or via npm

npm install -D @hcaptcha/types

How to use

Locally in file

import '@hcaptcha/types';

// `hcaptcha` now is defined on the global object
hcaptcha.execute();

or

///<reference types="@hcaptcha/types"/>

// `hcaptcha` now is defined on the global object
hcaptcha.execute();

Globally

Add import or reference to your .d.ts:

import "@hcaptcha/types";

// or

/// <reference types="@hcaptcha/types"/>

Or add "node_modules/@hcaptcha" to the typeRoots in tsconfig.json

{
  "compilerOptions": {
    // ...
    "typeRoots": [
      "node_modules/@hcaptcha"
    ]
    // ...
  },
  // ...
}

Bug Report

If you encounter an issue and would like to report it, please email us at support@hcaptcha.com.

FAQs

Package last updated on 01 Aug 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.