UNPKG

vue-recaptcha-v3

Version:

[![npm](https://img.shields.io/npm/v/vue-recaptcha-v3.svg)](https://www.npmjs.com/package/vue-recaptcha-v3) [![npm type definitions](https://img.shields.io/npm/types/vue-recaptcha-v3.svg)](https://www.npmjs.com/package/vue-recaptcha-v3)

14 lines (13 loc) 536 B
import { ReCaptchaInstance } from 'recaptcha-v3'; import { App, Ref } from 'vue'; import { IReCaptchaOptions } from './IReCaptchaOptions'; export declare const VueReCaptcha: { install(app: App, options: IReCaptchaOptions): void; }; export declare function useReCaptcha(): IReCaptchaComposition | undefined; export interface IReCaptchaComposition { isLoaded: Ref<boolean>; instance: Ref<ReCaptchaInstance | undefined>; executeRecaptcha: (action: string) => Promise<string>; recaptchaLoaded: () => Promise<boolean>; }