[PR #7364] [MERGED] chore(organization): remove any return type #7260

Closed
opened 2026-03-13 13:29:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7364
Author: @jslno
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @himself65

Base: canaryHead: 01-14-2026/rm-org-any-return-type


📝 Commits (1)

  • 839c873 chore(organization): remove any return type

📊 Changes

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

View changed files

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

📄 Description

Fixes #7359


Summary by cubic

Removed the any return type from organization() so TypeScript infers the correct type from the existing overloads. Improves type safety and editor autocompletion with no runtime changes.

Written for commit 839c873dc7. 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/7364 **Author:** [@jslno](https://github.com/jslno) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `01-14-2026/rm-org-any-return-type` --- ### 📝 Commits (1) - [`839c873`](https://github.com/better-auth/better-auth/commit/839c873dc71b7aa8df886b3f89c11ea12a99ac93) chore(organization): remove `any` return type ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+1 -1) </details> ### 📄 Description Fixes #7359 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed the any return type from organization() so TypeScript infers the correct type from the existing overloads. Improves type safety and editor autocompletion with no runtime changes. <sup>Written for commit 839c873dc71b7aa8df886b3f89c11ea12a99ac93. 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:29:58 -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#7260