0.2.6 • Published 6 months ago
@types/hcaptcha__vue-hcaptcha v0.2.6
Installation
npm install --save @types/hcaptcha__vue-hcaptcha
Summary
This package contains type definitions for @hcaptcha/vue-hcaptcha (https://github.com/hCaptcha/vue-hcaptcha).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__vue-hcaptcha.
index.d.ts
// Type definitions for @hcaptcha/vue-hcaptcha 0.2
// Project: https://github.com/hCaptcha/vue-hcaptcha
// Definitions by: George Pickering <https://github.com/geopic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8
import { VueConstructor } from 'vue';
export const h: HCaptcha;
export default h;
export interface HCaptchaProps {
sitekey: string;
theme?: string | undefined;
size?: string | undefined;
tabindex?: string | undefined;
}
export interface HCaptchaMethods {
onloadScript(): void;
onError(e: Error): void;
onVerify(response: string): void;
onExpired(): void;
execute(): void;
reset(): void;
}
export interface HCaptcha extends VueConstructor {
props: HCaptchaProps;
data: any;
methods: HCaptchaMethods;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 14:22:48 GMT
- Dependencies: @types/vue
- Global values: none
Credits
These definitions were written by George Pickering.