Socket
Socket
Sign inDemoInstall

@types/hcaptcha__react-hcaptcha

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

18

hcaptcha__react-hcaptcha/index.d.ts

@@ -17,12 +17,12 @@ // Type definitions for @hcaptcha/react-hcaptcha 0.1

interface HCaptchaProps {
onExpire?: () => any;
onError?: (event: string) => any;
onVerify?: (token: string) => any;
languageOverride?: string;
onExpire?: (() => any) | undefined;
onError?: ((event: string) => any) | undefined;
onVerify?: ((token: string) => any) | undefined;
languageOverride?: string | undefined;
sitekey: string;
size?: 'normal' | 'compact' | 'invisible';
theme?: 'light' | 'dark';
tabIndex?: number;
id?: string;
reCaptchaCompat?: boolean;
size?: 'normal' | 'compact' | 'invisible' | undefined;
theme?: 'light' | 'dark' | undefined;
tabIndex?: number | undefined;
id?: string | undefined;
reCaptchaCompat?: boolean | undefined;
}

@@ -29,0 +29,0 @@

{
"name": "@types/hcaptcha__react-hcaptcha",
"version": "0.1.4",
"version": "0.1.5",
"description": "TypeScript definitions for @hcaptcha/react-hcaptcha",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "17857c7a3c38bfd449f72d7230d7e305de0402dee340fd7d26a66896c78a209d",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "decbddb8ed13b3d05dea7127c9580b141bc3d58c37b2f90d4fb40ab58f20f148",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,45 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha/index.d.ts)
````ts
// Type definitions for @hcaptcha/react-hcaptcha 0.1
// Project: https://github.com/hCaptcha/react-hcaptcha
// Definitions by: Matt Sutkowski <https://github.com/msutkowski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
interface HCaptchaState {
isApiReady: boolean;
isRemoved: boolean;
elementId: string;
captchaId: string;
}
interface HCaptchaProps {
onExpire?: (() => any) | undefined;
onError?: ((event: string) => any) | undefined;
onVerify?: ((token: string) => any) | undefined;
languageOverride?: string | undefined;
sitekey: string;
size?: 'normal' | 'compact' | 'invisible' | undefined;
theme?: 'light' | 'dark' | undefined;
tabIndex?: number | undefined;
id?: string | undefined;
reCaptchaCompat?: boolean | undefined;
}
declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
resetCaptcha(): void;
renderCaptcha(): void;
removeCaptcha(): void;
execute(): void;
}
export = HCaptcha;
````
### Additional Details
* Last updated: Mon, 26 Oct 2020 18:11:17 GMT
* Last updated: Thu, 08 Jul 2021 14:22:47 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +54,0 @@ * Global values: none

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