[PR #6268] [CLOSED] chore: re-export zod types in plugins #23455

Closed
opened 2026-04-15 21:43:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6268
Author: @jslno
Created: 11/24/2025
Status: Closed

Base: canaryHead: chore/re-export-zod-in-plugins


📝 Commits (1)

  • d262f1b chore: re-export zod types in plugins

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/index.ts (+1 -0)

📄 Description

Related: #6230

The inferred type of 'auth' cannot be named without a reference to '.pnpm/zod@4.1.13/node_modules/zod'. This is likely not portable. A type annotation is necessary. (ts 2742)


Summary by cubic

Re-export Zod types from the plugins entry to prevent non-portable type errors (TS2742) in consumers. Consumers can access z via @better-auth/plugins without importing zod directly. Related to #6230.

  • Bug Fixes
    • Added export type * as z from "zod" in plugins index to avoid .pnpm path references when inferring types like auth (TS2742).

Written for commit d262f1b3a9. 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/6268 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/24/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `chore/re-export-zod-in-plugins` --- ### 📝 Commits (1) - [`d262f1b`](https://github.com/better-auth/better-auth/commit/d262f1b3a943b85cd5cd77fa88d89ac39d62ae46) chore: re-export zod types in plugins ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) </details> ### 📄 Description Related: #6230 `The inferred type of 'auth' cannot be named without a reference to '.pnpm/zod@4.1.13/node_modules/zod'. This is likely not portable. A type annotation is necessary. (ts 2742)` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Re-export Zod types from the plugins entry to prevent non-portable type errors (TS2742) in consumers. Consumers can access z via @better-auth/plugins without importing zod directly. Related to #6230. - **Bug Fixes** - Added export type * as z from "zod" in plugins index to avoid .pnpm path references when inferring types like auth (TS2742). <sup>Written for commit d262f1b3a943b85cd5cd77fa88d89ac39d62ae46. 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-15 21:43:59 -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#23455