[PR #5374] [MERGED] chore(cli): improve type #5969

Closed
opened 2026-03-13 12:43:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5374
Author: @himself65
Created: 10/17/2025
Status: Merged
Merged: 10/17/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/16/type-impr


📝 Commits (3)

📊 Changes

3 files changed (+13 additions, -6 deletions)

View changed files

📝 packages/better-auth/src/types/adapter.ts (+7 -0)
📝 packages/cli/src/generators/index.ts (+2 -2)
📝 packages/cli/src/generators/types.ts (+4 -4)

📄 Description

Summary by cubic

Tightened CLI generator types by switching to DBAdapter and adding BetterAuthOptions generics. Also re-exported DB adapter types from better-auth for simpler imports. No runtime changes.

  • Refactors
    • Replace Adapter with DBAdapter in CLI generators.
    • Make generateSchema and SchemaGenerator generic over BetterAuthOptions.
    • Re-export DBAdapter, DBTransactionAdapter, DBAdapterSchemaCreation, and DBAdapterInstance from better-auth.

🔄 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/5374 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/17/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/16/type-impr` --- ### 📝 Commits (3) - [`c250f59`](https://github.com/better-auth/better-auth/commit/c250f598752b980890db534e91de2f0fdb095992) chore(cli): improve type - [`04db350`](https://github.com/better-auth/better-auth/commit/04db35068485e6b3b68264738e3cd82588381071) chore: fix type - [`0a4129f`](https://github.com/better-auth/better-auth/commit/0a4129f00a2af4336d469225aa85a3bcd2f672e5) fix: type ### 📊 Changes **3 files changed** (+13 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/types/adapter.ts` (+7 -0) 📝 `packages/cli/src/generators/index.ts` (+2 -2) 📝 `packages/cli/src/generators/types.ts` (+4 -4) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Tightened CLI generator types by switching to DBAdapter and adding BetterAuthOptions generics. Also re-exported DB adapter types from better-auth for simpler imports. No runtime changes. - **Refactors** - Replace Adapter with DBAdapter in CLI generators. - Make generateSchema and SchemaGenerator generic over BetterAuthOptions. - Re-export DBAdapter, DBTransactionAdapter, DBAdapterSchemaCreation, and DBAdapterInstance from better-auth. <!-- 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 12:43: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#5969