[PR #5776] [MERGED] chore: re-export better-call types #6216

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5776
Author: @jslno
Created: 11/5/2025
Status: Merged
Merged: 11/5/2025
Merged by: @himself65

Base: canaryHead: fix/better-call-type-reference


📝 Commits (2)

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/index.ts (+3 -1)

📄 Description

The inferred type of 'auth' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary.


Summary by cubic

Re-exported better-call types and StandardSchemaV1 from better-auth to fix non-portable type references. TypeScript can now name the auth type without referencing the better-call package path, avoiding pnpm node_modules leaks.

Written for commit 326765cdd3. 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/5776 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/5/2025 **Status:** ✅ Merged **Merged:** 11/5/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/better-call-type-reference` --- ### 📝 Commits (2) - [`7e10a3e`](https://github.com/better-auth/better-auth/commit/7e10a3e1e13a2bb3bf89bd20bcb6402583c4c060) chore: re-export better-call types - [`326765c`](https://github.com/better-auth/better-auth/commit/326765cdd32ba4dc8000f7a3b94055cbf5fb3fd9) fix: lint ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/index.ts` (+3 -1) </details> ### 📄 Description `The inferred type of 'auth' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary.` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Re-exported better-call types and StandardSchemaV1 from better-auth to fix non-portable type references. TypeScript can now name the auth type without referencing the better-call package path, avoiding pnpm node_modules leaks. <sup>Written for commit 326765cdd32ba4dc8000f7a3b94055cbf5fb3fd9. 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:20 -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#6216