evenchange4 / react-grecaptcha

React.js Google reCAPTCHA v2 integration component.
https://react-grecaptcha.netlify.com
MIT License
51 stars 8 forks source link

Added typescript tpyings so that it can be easily imported inside a t… #70

Closed vasilevich closed 6 years ago

vasilevich commented 6 years ago

Added typescript typings to allow us to use your library like so:

import Recaptcha from 'react-grecaptcha'; inside a typescript project, which is not possible unless those typings exist.

thank you for your hard work!

evenchange4 commented 6 years ago

Deploy preview ready!

Built with commit e1a7bb5b58e6cd74a10199e8c39668143c65d43b

https://deploy-preview-70--react-grecaptcha.netlify.com

evenchange4 commented 6 years ago

Thanks! @vasilevich Just released with your changes. I am not familiar with ts, please try it with the version ~v1.2.2~. 🙌

Oops, the index.d.ts file is missing in npm pack. v1.2.3.

vasilevich commented 6 years ago

I already tested it within my fork in the "private" branch, I will switch over to your new version, thank you!

edit: now tested it with your new version, works well, thank you!