basaran / svelte-recaptcha-v2

Google reCAPTCHA v2 implementation for Svelte SPA, SSR and sveltekit static sites.
https://basaran.github.io/svelte-recaptcha-v2/demo
MIT License
42 stars 14 forks source link

Can you provide Typescript types? #13

Closed Fighter178 closed 1 year ago

Fighter178 commented 1 year ago

My project uses Typescript, and I would love to fully use this package, however, since my project uses Typescript, I cannot fully use it. I may try to write my own type declarations, and submit a pull request, but for now, I won't. This would really help me and others who need Typescript support. I can, for now, just do this in my .d.ts file:

declare module "svelte-recaptcha-v2"

so Typescript will work, however, this does not provide the error catching and intelisense that full Typescript supports.

Fighter178 commented 1 year ago

Sorry, I forgot to read the final thing in the readme. My fault