Skip to content

chore: document the response object in the examples#471

Merged
gabrielmfern merged 4 commits intoresend:canaryfrom
mcwhittemore:patch-1
Aug 21, 2025
Merged

chore: document the response object in the examples#471
gabrielmfern merged 4 commits intoresend:canaryfrom
mcwhittemore:patch-1

Conversation

@mcwhittemore
Copy link
Contributor

@mcwhittemore mcwhittemore commented Mar 15, 2025

I found myself wondering what was returned by resend.emails.send and ended up using the TypeScript docs and trial and error to figure it out. The docs are pretty light, so I took a lightweight approach, adding a console.log to the examples that explains what just happened, with the ID in the content. I'd love feedback on the approach.

@mcwhittemore mcwhittemore requested a review from a team as a code owner March 15, 2025 19:14
@bukinoshita bukinoshita changed the title Document the respond object in the usage examples chore: document the response object in the examples Apr 18, 2025
@gabrielmfern
Copy link
Member

Thank you so much for this, great idea!

@gabrielmfern gabrielmfern merged commit 25372d1 into resend:canary Aug 21, 2025
6 checks passed
gabrielmfern added a commit that referenced this pull request Sep 15, 2025
Co-authored-by: Bu Kinoshita <6929565+bukinoshita@users.noreply.github.com>
Co-authored-by: Gabriel Miranda <gabrielmfern@outlook.com>
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.

3 participants