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

Closed
opened 2026-04-13 09:29:12 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5776

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5776 **State:** closed **Merged:** Yes --- `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. -->
GiteaMirror added the pull-request label 2026-04-13 09:29:12 -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#14463