[PR #5893] pref: infinite tsc compilation time #14549

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

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

State: closed
Merged: Yes


This PR causes TSC to experience infinite compilation time. https://github.com/better-auth/better-auth/pull/3731


Summary by cubic

Fixes an infinite TypeScript compile hang in the organization plugin by simplifying conditional types and removing recursive type computations. Restores normal tsc times while keeping accurate team-related types.

  • Bug Fixes
    • Replaced ActiveOrganization’s nested Awaited/ReturnType recursion with a direct conditional object shape based on teams.enabled.
    • Imported and used InferTeam; included teams in ActiveOrganization only when teams are enabled.
    • Set Team and TeamMember fallbacks to unknown when teams are disabled.
    • Enabled all typecheck fixtures and added a 10s timeout to prevent hangs.

Written for commit 376154dc75. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5893 **State:** closed **Merged:** Yes --- This PR causes TSC to experience infinite compilation time. https://github.com/better-auth/better-auth/pull/3731 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes an infinite TypeScript compile hang in the organization plugin by simplifying conditional types and removing recursive type computations. Restores normal tsc times while keeping accurate team-related types. - **Bug Fixes** - Replaced ActiveOrganization’s nested Awaited/ReturnType recursion with a direct conditional object shape based on teams.enabled. - Imported and used InferTeam; included teams in ActiveOrganization only when teams are enabled. - Set Team and TeamMember fallbacks to unknown when teams are disabled. - Enabled all typecheck fixtures and added a 10s timeout to prevent hangs. <sup>Written for commit 376154dc75a21a6404a6b3cba5c5aaceb3f5f380. 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:31:34 -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#14549