Skip to content

fix: add helper types to exports#6479

Merged
himself65 merged 2 commits intobetter-auth:canaryfrom
himself65:himself65/2025/12/02/helper
Dec 2, 2025
Merged

fix: add helper types to exports#6479
himself65 merged 2 commits intobetter-auth:canaryfrom
himself65:himself65/2025/12/02/helper

Conversation

@himself65
Copy link
Copy Markdown
Contributor

@himself65 himself65 commented Dec 2, 2025

Fixes: #5666


Summary by cubic

Expose helper types in better-auth’s public types index so consumers can import them without deep paths. Fixes missing exports that caused TypeScript import errors in downstream code.

Written for commit d5b0aa8. Summary will update automatically on new commits.

Copilot AI review requested due to automatic review settings December 2, 2025 23:21
@himself65 himself65 requested a review from Bekacru as a code owner December 2, 2025 23:21
@vercel
Copy link
Copy Markdown

vercel bot commented Dec 2, 2025

@himself65 is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Dec 2, 2025

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@6479

@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@6479

@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@6479

@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@6479

@better-auth/passkey

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/passkey@6479

@better-auth/scim

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/scim@6479

@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@6479

@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@6479

@better-auth/telemetry

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/telemetry@6479

commit: d5b0aa8

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds helper utility types to the public type exports of the better-auth package. These utility types (like Prettify, PrettifyDeep, UnionToIntersection, Awaitable, etc.) are already used internally throughout the codebase and are now being made available to consumers of the better-auth/types package export.

  • Adds a single export statement for helper types in alphabetical order with existing type exports

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@himself65 himself65 merged commit 9b556f3 into better-auth:canary Dec 2, 2025
8 of 12 checks passed
himself65 added a commit that referenced this pull request Dec 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 2, 2025

✅ Automatically cherry-picked to main branch!

himself65 added a commit that referenced this pull request Dec 3, 2025
@better-auth better-auth locked as resolved and limited conversation to collaborators Mar 31, 2026
@bytaesu bytaesu added the locked Locked conversations after being closed for 7 days label Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Systemic type issues across better-* packages ("cannot be named without a reference") (proposed parent issue)

3 participants