[PR #4898] [MERGED] chore: add type annotation #22547

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4898
Author: @himself65
Created: 9/25/2025
Status: Merged
Merged: 9/25/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/09/25/session-exp-type


📝 Commits (1)

  • 0f105c4 chore: add type annotation

📊 Changes

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

View changed files

📝 packages/better-auth/src/db/internal-adapter.ts (+1 -1)

📄 Description

Summary by cubic

Add an explicit type annotation to the filtered sessions array to enforce { token: string; expiresAt: number } and prevent TypeScript inference issues. No runtime changes; improves type safety and readability.


🔄 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/4898 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/25/2025 **Status:** ✅ Merged **Merged:** 9/25/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/25/session-exp-type` --- ### 📝 Commits (1) - [`0f105c4`](https://github.com/better-auth/better-auth/commit/0f105c46785f5b4d5d92faec1623bced99ec724a) chore: add type annotation ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/internal-adapter.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add an explicit type annotation to the filtered sessions array to enforce { token: string; expiresAt: number } and prevent TypeScript inference issues. No runtime changes; improves type safety and readability. <!-- 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:07:30 -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#22547