[PR #1384] [CLOSED] docs(add) add type safety guidance for database hooks #29386

Closed
opened 2026-04-17 20:43:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1384
Author: @cameronmema
Created: 2/7/2025
Status: Closed

Base: mainHead: add-typesafety-docs-database-hooks


📝 Commits (1)

  • 42fa695 docs: add type safety guidance for database hooks

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/database.mdx (+8 -1)

📄 Description

Added documentation explaining how to handle type inference limitations in database hooks, including:

  • How to manually cast types for additional fields
  • Example code showing proper type usage
  • Link to TypeScript documentation for more details

🔄 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/1384 **Author:** [@cameronmema](https://github.com/cameronmema) **Created:** 2/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-typesafety-docs-database-hooks` --- ### 📝 Commits (1) - [`42fa695`](https://github.com/better-auth/better-auth/commit/42fa695ba304c8ff708f881436d8ac89278f8290) docs: add type safety guidance for database hooks ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+8 -1) </details> ### 📄 Description Added documentation explaining how to handle type inference limitations in database hooks, including: - How to manually cast types for additional fields - Example code showing proper type usage - Link to TypeScript documentation for more details --- <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-17 20:43:58 -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#29386