vue-hcaptcha
vue-hcaptcha copied to clipboard
Vue3 version is missing TypeScript declarations
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';
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 runningnpm 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.
Ported a version for my use case until this is resolved.
Ref: https://github.com/shubhamranjan/vue-hcaptcha
@shubhamranjan PRs welcome to this repo as well.
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...
Hey. Thank you for reporting this. Types were added to @hcaptcha/[email protected].
Closing this, feel free to open a new ticket if necessary.