[PR #3856] [MERGED] fix(docs): Remove unused import of 'auth' type in authClient setup #5049

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3856
Author: @tan911
Created: 8/7/2025
Status: Merged
Merged: 8/7/2025
Merged by: @Kinfe123

Base: mainHead: patch-1


📝 Commits (1)

  • e86a20d fix(docs): remove unused import of 'auth' type in authClient setup

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/typescript.mdx (+0 -1)

📄 Description

In the previous implementation, the import statement for 'auth' type from './auth' was included as part of the setup for the authClient, but it is no longer being used in the current code. This update removes the unnecessary import to clean up the code and prevent potential confusion.

Additionally, the authClient setup remains intact with the use of 'inferAdditionalFields' plugin to define additional user fields (role type set to 'string').

  • Removed unused import: import type { auth } from "./auth"
  • Kept the authClient initialization with 'inferAdditionalFields' plugin

This resolves a minor issue and ensures that the code remains clean and maintainable.


Summary by cubic

Removed an unused import of the 'auth' type from the authClient setup example in the TypeScript docs to keep the code clean.


🔄 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/3856 **Author:** [@tan911](https://github.com/tan911) **Created:** 8/7/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`e86a20d`](https://github.com/better-auth/better-auth/commit/e86a20dfe16454bb5ca788c0089ca1609a4c12fa) fix(docs): remove unused import of 'auth' type in authClient setup ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/typescript.mdx` (+0 -1) </details> ### 📄 Description In the previous implementation, the import statement for 'auth' type from './auth' was included as part of the setup for the authClient, but it is no longer being used in the current code. This update removes the unnecessary import to clean up the code and prevent potential confusion. Additionally, the authClient setup remains intact with the use of 'inferAdditionalFields' plugin to define additional user fields (role type set to 'string'). - Removed unused import: `import type { auth } from "./auth"` - Kept the authClient initialization with 'inferAdditionalFields' plugin This resolves a minor issue and ensures that the code remains clean and maintainable. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed an unused import of the 'auth' type from the authClient setup example in the TypeScript docs to keep the code clean. <!-- 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:09:11 -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#5049