[PR #5983] [MERGED] chore: expose BetterAuthOptions type from /minimal #31962

Closed
opened 2026-04-17 22:50:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5983
Author: @GautamBytes
Created: 11/14/2025
Status: Merged
Merged: 11/14/2025
Merged by: @Bekacru

Base: canaryHead: dx/export-minimal-options


📝 Commits (1)

  • 2cf53f1 feat(minimal): export BetterAuthOptions type

📊 Changes

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

View changed files

📝 packages/better-auth/src/auth/minimal.ts (+2 -0)

📄 Description

Fixes #5971

This PR exports the BetterAuthOptions type from the better-auth/minimal package.

This improves the developer experience (DX) for TypeScript users, allowing them to import the type directly alongside the betterAuth function, rather than needing to import it from @better-auth/core.

Example:

import { betterAuth, type BetterAuthOptions } from "better-auth/minimal";

const config: BetterAuthOptions = { ... };

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Exported BetterAuthOptions from better-auth/minimal so TypeScript users can import the type alongside betterAuth in minimal mode. This improves DX and removes the need to import the type from @better-auth/core.

<sup>Written for commit 2cf53f148cd9fe1c4affcefdd5ebf51c336c88fa. Summary will update automatically 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>
## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5983 **Author:** [@GautamBytes](https://github.com/GautamBytes) **Created:** 11/14/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `dx/export-minimal-options` --- ### 📝 Commits (1) - [`2cf53f1`](https://github.com/better-auth/better-auth/commit/2cf53f148cd9fe1c4affcefdd5ebf51c336c88fa) feat(minimal): export BetterAuthOptions type ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/auth/minimal.ts` (+2 -0) </details> ### 📄 Description Fixes #5971 This PR exports the `BetterAuthOptions` type from the `better-auth/minimal` package. This improves the developer experience (DX) for TypeScript users, allowing them to import the type directly alongside the `betterAuth` function, rather than needing to import it from `@better-auth/core`. **Example:** ```typescript import { betterAuth, type BetterAuthOptions } from "better-auth/minimal"; const config: BetterAuthOptions = { ... }; <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Exported BetterAuthOptions from better-auth/minimal so TypeScript users can import the type alongside betterAuth in minimal mode. This improves DX and removes the need to import the type from @better-auth/core. <sup>Written for commit 2cf53f148cd9fe1c4affcefdd5ebf51c336c88fa. Summary will update automatically 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 22:50: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#31962