Skip to content

feat: Add missing fields to the GetEmailResponse type - #146

Merged
bukinoshita merged 13 commits into
resend:mainfrom
abubuwe:main
Aug 15, 2023
Merged

bukinoshita merged 13 commits into
resend:mainfrom
abubuwe:main

Conversation

@abubuwe

@abubuwe abubuwe commented Jul 27, 2023

Copy link
Copy Markdown
Contributor
  1. As seen in the API documentation, the GetEmailResponse type is missing some fields that are useful to access. (Side note: the API docs appear to be wrong in that the bcc, cc, reply_to fields do return null and not the advertised [null]).
    This PR adds those missing fields.

  2. It also seems that the API returns fields with null, rather than omitting them or with the value undefined, so this PR also updates the types to match this behaviour.

  3. A small addition fix is that the GetEmailResponse type is now exported in the index.ts.

Please feel free to point out any issues or things that I may have failed to consider in this PR.

@bukinoshita bukinoshita changed the title fix: add missing fields to the GetEmailResponse type fix: Add missing fields to the GetEmailResponse type Aug 15, 2023
@bukinoshita

Copy link
Copy Markdown
Member

can you run yarn format?

Comment thread package.json Resolved
@bukinoshita bukinoshita changed the title fix: Add missing fields to the GetEmailResponse type feat: Add missing fields to the GetEmailResponse type Aug 15, 2023
@bukinoshita
bukinoshita merged commit 6dc92a0 into resend:main Aug 15, 2023
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.

2 participants