vue-hcaptcha icon indicating copy to clipboard operation
vue-hcaptcha copied to clipboard

Vue3 version is missing TypeScript declarations

Open shubhamranjan opened this issue 4 years ago • 4 comments

The vue3 version seems to be missing the TypeScript declarations which the vue2 version has

shubhamranjan avatar Nov 03 '21 13:11 shubhamranjan

facing the same issue

my workaround was to create a shims-hcaptcha__vue3-hcaptcha.d.ts next to my main.ts and inside i just added

/* eslint-disable */
declare module '@hcaptcha/vue3-hcaptcha';

hgouveia avatar Nov 10 '21 18:11 hgouveia

I'm sorry for this comment, but I'm also having the same issue. The README.md lacks a very detailed description with their TypeScript section, and all they show is them saying that:

TypeScript

TypeScript is supported (types/index.d.ts), and you can see an example by running npm run serve:ts.

without any further explanation whatsoever.

The only example they gave out with typescript is with vue 2. And I don't think they have that exact same configuration for vue 3 yet, as far as I know.

I just hope they update that section as well.

cindrmon avatar Nov 21 '21 12:11 cindrmon

Ported a version for my use case until this is resolved.

Ref: https://github.com/shubhamranjan/vue-hcaptcha

shubhamranjan avatar Jan 20 '22 10:01 shubhamranjan

@shubhamranjan PRs welcome to this repo as well.

e271828- avatar Jan 20 '22 11:01 e271828-

Any news on that topic? We have an enterprise plan for hCaptcha but we are not able to use the Vue 3 component because it is not compatible with typescript...

lbineau avatar Feb 01 '23 13:02 lbineau

Hey. Thank you for reporting this. Types were added to @hcaptcha/[email protected].

Closing this, feel free to open a new ticket if necessary.

DSergiu avatar Feb 06 '23 09:02 DSergiu