[PR #6223] [MERGED] chore: re-export helper types in client #23429

Closed
opened 2026-04-15 21:42:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6223
Author: @jslno
Created: 11/22/2025
Status: Merged
Merged: 11/23/2025
Merged by: @Bekacru

Base: canaryHead: chore/client-reexport-helper-types


📝 Commits (2)

  • 15f116e chore: re-export helper types in client
  • b128896 chore: fix linting

📊 Changes

6 files changed (+13 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/client/index.ts (+3 -0)
📝 packages/better-auth/src/client/lynx/index.ts (+2 -0)
📝 packages/better-auth/src/client/react/index.ts (+2 -0)
📝 packages/better-auth/src/client/solid/index.ts (+2 -0)
📝 packages/better-auth/src/client/svelte/index.ts (+2 -0)
📝 packages/better-auth/src/client/vue/index.ts (+2 -0)

📄 Description

The inferred type of 'authClient' cannot be named without a reference to '../../node_modules/better-auth/dist/helper-DU33OcfW.mjs'. This is likely not portable. A type annotation is necessary. (ts 2742)


Summary by cubic

Re-exported helper types from client packages to make authClient’s inferred type portable and fix TS2742 “non-portable type” errors. Applies to core client and all framework clients (Lynx, React, Solid, Svelte, Vue).

  • Bug Fixes
    • Re-exported types from ../types/helper, including UnionToIntersection.
    • Explicitly exported Primitive from @better-auth/core/db.
    • Ensured public type references instead of internal build paths.

Written for commit b1288966ff. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6223 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/22/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/client-reexport-helper-types` --- ### 📝 Commits (2) - [`15f116e`](https://github.com/better-auth/better-auth/commit/15f116e7d4cfa5425ad58a4988280161ed059201) chore: re-export helper types in client - [`b128896`](https://github.com/better-auth/better-auth/commit/b1288966ff24fa11628a3211e39cfc3d428c9e1b) chore: fix linting ### 📊 Changes **6 files changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/index.ts` (+3 -0) 📝 `packages/better-auth/src/client/lynx/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/react/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/solid/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/svelte/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/vue/index.ts` (+2 -0) </details> ### 📄 Description `The inferred type of 'authClient' cannot be named without a reference to '../../node_modules/better-auth/dist/helper-DU33OcfW.mjs'. This is likely not portable. A type annotation is necessary. (ts 2742)` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Re-exported helper types from client packages to make authClient’s inferred type portable and fix TS2742 “non-portable type” errors. Applies to core client and all framework clients (Lynx, React, Solid, Svelte, Vue). - **Bug Fixes** - Re-exported types from ../types/helper, including UnionToIntersection. - Explicitly exported Primitive from @better-auth/core/db. - Ensured public type references instead of internal build paths. <sup>Written for commit b1288966ff24fa11628a3211e39cfc3d428c9e1b. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:42:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#23429