0.1.8 • Published 6 months ago

@types/hcaptcha__react-hcaptcha v0.1.8

Weekly downloads
3,244
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/hcaptcha__react-hcaptcha

Summary

This package contains type definitions for @hcaptcha/react-hcaptcha (https://github.com/hCaptcha/react-hcaptcha).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha.

index.d.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: Thu, 08 Jul 2021 14:22:47 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Matt Sutkowski.

0.1.8

6 months ago

0.1.7

7 months ago

0.1.6

8 months ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago