[PR #6172] [MERGED] chore: fix type when declaration: true #6498

Closed
opened 2026-03-13 13:01:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6172
Author: @himself65
Created: 11/21/2025
Status: Merged
Merged: 11/21/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/21/fix


📝 Commits (1)

  • d8577b7 chore: fix type when declaration: true

📊 Changes

2 files changed (+5 additions, -3 deletions)

View changed files

📝 packages/better-auth/src/plugins/magic-link/index.ts (+3 -3)
📝 packages/better-auth/src/plugins/phone-number/index.ts (+2 -0)

📄 Description

Summary by cubic

Fix TypeScript declaration output when declaration: true by exporting the right types. No runtime changes; resolves type access errors for consumers.

  • Bug Fixes
    • Export MagicLinkOptions and update magicLink signature and satisfies in magic-link plugin.
    • Re-export PhoneNumberOptions and UserWithPhoneNumber from the phone-number plugin for proper .d.ts generation.

Written for commit d8577b7ff5. Summary will update automatically 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/6172 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/21/fix` --- ### 📝 Commits (1) - [`d8577b7`](https://github.com/better-auth/better-auth/commit/d8577b7ff59fc9b6138acb9982351d4a20bdb12e) chore: fix type when `declaration: true` ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/magic-link/index.ts` (+3 -3) 📝 `packages/better-auth/src/plugins/phone-number/index.ts` (+2 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fix TypeScript declaration output when declaration: true by exporting the right types. No runtime changes; resolves type access errors for consumers. - **Bug Fixes** - Export MagicLinkOptions and update magicLink signature and satisfies in magic-link plugin. - Re-export PhoneNumberOptions and UserWithPhoneNumber from the phone-number plugin for proper .d.ts generation. <sup>Written for commit d8577b7ff59fc9b6138acb9982351d4a20bdb12e. 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-03-13 13:01:17 -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#6498