[PR #7922] [MERGED] fix: type extends #33228

Closed
opened 2026-04-17 23:53:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7922
Author: @himself65
Created: 2/11/2026
Status: Merged
Merged: 2/11/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/02/11/type


📝 Commits (1)

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/organization/organization.ts (+12 -12)

📄 Description

Summary by cubic

Strengthened type safety in the organization plugin. Team and TeamMember now resolve to never when teams are disabled, replacing previous any/unknown fallbacks.

  • Migration
    • If teams are disabled, remove or guard any references to Team or TeamMember.
    • Check options.teams.enabled before using team-specific types.

Written for commit 82ca2f6bcb. 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/7922 **Author:** [@himself65](https://github.com/himself65) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/02/11/type` --- ### 📝 Commits (1) - [`82ca2f6`](https://github.com/better-auth/better-auth/commit/82ca2f6bcb3966452922b5a6160ba35810ecf52d) fix: type extends ### 📊 Changes **1 file changed** (+12 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+12 -12) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Strengthened type safety in the organization plugin. Team and TeamMember now resolve to never when teams are disabled, replacing previous any/unknown fallbacks. - **Migration** - If teams are disabled, remove or guard any references to Team or TeamMember. - Check options.teams.enabled before using team-specific types. <sup>Written for commit 82ca2f6bcb3966452922b5a6160ba35810ecf52d. 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-04-17 23:53:02 -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#33228