[PR #210] [CLOSED] docs:fix: Fix error on type Session #11409

Closed
opened 2026-04-13 07:45:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/210
Author: @Loa212
Created: 10/17/2024
Status: ❌ Closed

Base: main ← Head: loa212/fix-typescript.mdx-errors-in-code-blocks


📝 Commits (3)

  • 38d2022 fix
  • 9024924 also fix second code block
  • f36a4b0 since types would be inferred as any twoslash is not needed

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 docs/content/docs/concepts/typescript.mdx (+4 -3)

📄 Description

since createAuthClient() and betterAuth() do not have the required props, $Infer is breaking in the example.

PS. I am not super-familiar with twoslash or fumadocs so forgive me if this is not the best approach to solve the issue.


🔄 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/210 **Author:** [@Loa212](https://github.com/Loa212) **Created:** 10/17/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `loa212/fix-typescript.mdx-errors-in-code-blocks` --- ### 📝 Commits (3) - [`38d2022`](https://github.com/better-auth/better-auth/commit/38d20226cd25842a1bd048b554a1bd48330f68a2) fix - [`9024924`](https://github.com/better-auth/better-auth/commit/9024924cbcf22365cda7c4db97867eb0c27a5234) also fix second code block - [`f36a4b0`](https://github.com/better-auth/better-auth/commit/f36a4b037e4d9cf896c163d466d6f8014b0ae0a0) since types would be inferred as any twoslash is not needed ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/typescript.mdx` (+4 -3) </details> ### 📄 Description since `createAuthClient()` and `betterAuth()` do not have the required props, $Infer is breaking in the example. PS. I am not super-familiar with twoslash or fumadocs so forgive me if this is not the best approach to solve the issue. --- <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-13 07:45:16 -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#11409