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

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

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

State: closed
Merged: Yes


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. -->

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5983 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:28 -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#14608