Skip to content

fix: Add TypeScript types to package.json exports for ESM compatibility - #326

Merged
zoryana94 merged 2 commits into
hCaptcha:masterfrom
evgeniiPerov:fix-esm-export-types
Dec 9, 2025
Merged

zoryana94 merged 2 commits into
hCaptcha:masterfrom
evgeniiPerov:fix-esm-export-types

Conversation

@evgeniiPerov

@evgeniiPerov evgeniiPerov commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

Related to #325

  • Add types field to exports in package.json for both . and ./hooks subpaths
    • Fix incorrect file extensions in hooks exports (.jsx → .js to match babel output)
    • Add types/hooks/index.d.ts with TypeScript definitions for useHCaptcha and HCaptchaProvider

@evgeniiPerov
evgeniiPerov requested a review from a team as a code owner December 9, 2025 13:00
Comment thread package.json Resolved
@zoryana94
zoryana94 merged commit 3170803 into hCaptcha:master Dec 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants