[PR #7565] [MERGED] docs: use type-only import for BetterAuthClientPlugin #7404

Closed
opened 2026-03-13 13:35:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7565
Author: @tjkeller-xyz
Created: 1/23/2026
Status: Merged
Merged: 1/23/2026
Merged by: @bytaesu

Base: canaryHead: patch-1


📝 Commits (2)

  • dd3ddb0 Documentation: fix import BetterAuthClientPlugin missing 'type' keyword in example
  • 0c9146e fix type imports

📊 Changes

6 files changed (+10 additions, -5 deletions)

View changed files

📝 docs/content/docs/concepts/plugins.mdx (+1 -1)
📝 docs/content/docs/guides/your-first-plugin.mdx (+1 -1)
📝 packages/scim/src/client.ts (+1 -1)
📝 packages/sso/src/client.ts (+1 -1)
📝 packages/stripe/src/client.ts (+1 -1)
📝 test/unit/types/index.test.ts (+5 -0)

📄 Description

This snippet causes an error, tries to import a type as an object. Thanks


Summary by cubic

Switch BetterAuthClientPlugin to a type-only import from better-auth/client across docs and client packages to prevent importing a type as a value.

  • Bug Fixes
    • Updated imports in scim, sso, and stripe client files to use better-auth/client with import type.
    • Fixed docs examples to use import type from better-auth/client.
    • Added a unit test to verify AuthClient type import.

Written for commit 0c9146e924. Summary will update 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/7565 **Author:** [@tjkeller-xyz](https://github.com/tjkeller-xyz) **Created:** 1/23/2026 **Status:** ✅ Merged **Merged:** 1/23/2026 **Merged by:** [@bytaesu](https://github.com/bytaesu) **Base:** `canary` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`dd3ddb0`](https://github.com/better-auth/better-auth/commit/dd3ddb0a976e92ed2be82354e090f0d5dcb65f0d) Documentation: fix import BetterAuthClientPlugin missing 'type' keyword in example - [`0c9146e`](https://github.com/better-auth/better-auth/commit/0c9146e924a86e6aef14cc15eb7e12ebb62902ae) fix type imports ### 📊 Changes **6 files changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/plugins.mdx` (+1 -1) 📝 `docs/content/docs/guides/your-first-plugin.mdx` (+1 -1) 📝 `packages/scim/src/client.ts` (+1 -1) 📝 `packages/sso/src/client.ts` (+1 -1) 📝 `packages/stripe/src/client.ts` (+1 -1) 📝 `test/unit/types/index.test.ts` (+5 -0) </details> ### 📄 Description This snippet causes an error, tries to import a type as an object. Thanks <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Switch BetterAuthClientPlugin to a type-only import from better-auth/client across docs and client packages to prevent importing a type as a value. - **Bug Fixes** - Updated imports in scim, sso, and stripe client files to use better-auth/client with import type. - Fixed docs examples to use import type from better-auth/client. - Added a unit test to verify AuthClient type import. <sup>Written for commit 0c9146e924a86e6aef14cc15eb7e12ebb62902ae. Summary will update 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 13:35:07 -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#7404