hCaptcha/react-hcaptcha

Why HCaptchaProps was not exported?

XAKEPEHOK opened this issue · 1 comments

Hello!
I want to wrap HCaptcha component in my own wrapper, which should watch for app-level theme and language changing, and chage it for HCaptcha. Of course, i want use my wrapper as clear HCaptcha component with possibility of pass all props, that declared in HCaptchaProps, but HCaptchaProps was not exported, and i cant do that. Now, i just copy-pase all HCaptchaProps in my own props interface (instead of extends it), but its not good way
May be you can export HCaptchaProps?

I discover, that it can be accessed by something like

import HCaptcha from "@hcaptcha/react-hcaptcha";

type HCaptchaProps = HCaptcha['props']

But i think, that export of HCaptchaProps interface is much convenient