Socket
Socket
Sign inDemoInstall

@hcaptcha/types

Package Overview
Dependencies
0
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hcaptcha/types

hCaptcha Type Definitions


Version published
Weekly downloads
41K
increased by15.11%
Maintainers
4
Install size
6.77 kB
Created
Weekly downloads
 

Readme

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

Last updated on 12 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc