[PR #5802] [MERGED] chore: re-export helper types in client plugins #6234

Closed
opened 2026-03-13 12:51:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: fix/auth-client-type-reference


📝 Commits (1)

  • dc9495f chore: re-export helper types in client plugins

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/client/plugins/index.ts (+4 -0)

📄 Description

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


Summary by cubic

Re-exported helper types from the client plugins entry to fix the TypeScript error where authClient’s inferred type required a reference to dist/helper. This makes the types portable for consumers with no runtime changes.

Written for commit dc9495f7b7. 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/5802 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/auth-client-type-reference` --- ### 📝 Commits (1) - [`dc9495f`](https://github.com/better-auth/better-auth/commit/dc9495f7b7b38d458e20c18250e6cb1ea337fb91) chore: re-export helper types in client plugins ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/plugins/index.ts` (+4 -0) </details> ### 📄 Description `The inferred type of 'authClient' cannot be named without a reference to '../../node_modules/better-auth/dist/helper-BQDBO9v8' (src/types/helper.ts). This is likely not portable. A type annotation is necessary.` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Re-exported helper types from the client plugins entry to fix the TypeScript error where authClient’s inferred type required a reference to dist/helper. This makes the types portable for consumers with no runtime changes. <sup>Written for commit dc9495f7b7b38d458e20c18250e6cb1ea337fb91. 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-03-13 12:51:55 -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#6234