[PR #3546] [MERGED] fix: export types from organization plugin #13124

Closed
opened 2026-04-13 08:46:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3546
Author: @jakst
Created: 7/22/2025
Status: Merged
Merged: 7/23/2025
Merged by: @Bekacru

Base: mainHead: patch-1


📝 Commits (1)

  • 8a77ec6 Export types from organization plugin

📊 Changes

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

View changed files

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

📄 Description

We got the following error after upgrading to better-auth v1.3:

Return type of exported function has or is using name 'OrganizationOptions' from external module "./node_modules/.pnpm/better-auth@1.3.2_react@19.1.0/node_modules/better-auth/dist/plugins/organization/index" but cannot be named.

Exporting the OrganizationOptions type fixes this.


Summary by cubic

Exported types from the organization plugin to fix type errors when using better-auth v1.3.


🔄 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/3546 **Author:** [@jakst](https://github.com/jakst) **Created:** 7/22/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`8a77ec6`](https://github.com/better-auth/better-auth/commit/8a77ec6f27998550dea81bcba98823df84215e53) Export types from organization plugin ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/index.ts` (+1 -0) </details> ### 📄 Description We got the following error after upgrading to better-auth v1.3: ``` Return type of exported function has or is using name 'OrganizationOptions' from external module "./node_modules/.pnpm/better-auth@1.3.2_react@19.1.0/node_modules/better-auth/dist/plugins/organization/index" but cannot be named. ``` Exporting the `OrganizationOptions` type fixes this. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Exported types from the organization plugin to fix type errors when using better-auth v1.3. <!-- 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-13 08:46:10 -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#13124