Skip to content

chore: refactor email generation types to use TypedUser#16239

Closed
Sjoertjuh wants to merge 1 commit intopayloadcms:mainfrom
Sjoertjuh:patch-1
Closed

chore: refactor email generation types to use TypedUser#16239
Sjoertjuh wants to merge 1 commit intopayloadcms:mainfrom
Sjoertjuh:patch-1

Conversation

@Sjoertjuh
Copy link
Copy Markdown

This will improve the types of the auth mail methods (forgot password & verify). Currently the types are nullable for forgot password, and the user is typed as any for both. This will update these types to use the TypedUser, which should help a lot.

I came across this while implementing a custom email, since I had to do a lot of unneeded null checks.

@Sjoertjuh Sjoertjuh changed the title chore(payload): refactor email generation types to use TypedUser chore: refactor email generation types to use TypedUser Apr 10, 2026
@Sjoertjuh Sjoertjuh closed this Apr 10, 2026
@Sjoertjuh Sjoertjuh deleted the patch-1 branch April 10, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant