[PR #2761] [CLOSED] fix(types): add missing 'nullable' property to FieldAttributeConfig #4472

Closed
opened 2026-03-13 11:48:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2761
Author: @bytaesu
Created: 5/23/2025
Status: Closed

Base: mainHead: fix(types)/missing-nullable-property


📝 Commits (1)

  • 3c1da25 fix(types): add missing 'nullable' property to FieldAttributeConfig

📊 Changes

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

View changed files

📝 packages/better-auth/src/db/field.ts (+7 -0)

📄 Description

code
code

While developing, I extracted BetterAuthOptions into a separate file to make it reusable across different environments (e.g., Better Auth CLI and Cloudflare Wrangler). After doing so, I encountered a type error specifically related to the nullable property — other properties were working as expected.

Upon investigation, I found that the nullable field was missing from the type definition.
This PR fixes the issue by adding the missing nullable property back to the relevant type.


🔄 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/2761 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 5/23/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix(types)/missing-nullable-property` --- ### 📝 Commits (1) - [`3c1da25`](https://github.com/better-auth/better-auth/commit/3c1da2500d288f01b1593551b6db702529b1b560) fix(types): add missing 'nullable' property to FieldAttributeConfig ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/field.ts` (+7 -0) </details> ### 📄 Description ![code](https://github.com/user-attachments/assets/68e0e972-818d-40a9-9887-db263f9fce64) ![code](https://github.com/user-attachments/assets/24a96e58-8fe3-4e6e-b354-05b804f2d067) While developing, I extracted BetterAuthOptions into a separate file to make it reusable across different environments (e.g., Better Auth CLI and Cloudflare Wrangler). After doing so, I encountered a type error specifically related to the `nullable` property — other properties were working as expected. Upon investigation, I found that the `nullable` field was missing from the type definition. This PR fixes the issue by adding the missing `nullable` property back to the relevant type. --- <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 11:48:21 -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#4472