Skip to content

Make Contact TypeScript interfaces nullable rather than optional#706

Closed
max-programming wants to merge 39 commits into
resend:canaryfrom
max-programming:ts-null-types
Closed

Make Contact TypeScript interfaces nullable rather than optional#706
max-programming wants to merge 39 commits into
resend:canaryfrom
max-programming:ts-null-types

Conversation

@max-programming
Copy link
Copy Markdown

@max-programming max-programming commented Oct 22, 2025

This PR fixes #646 by making fields of first name and last name from TS interfaces & types for Contact nullable and removing optional (undefined) from them


Summary by cubic

Switch Contact and UpdateContactOptions first_name/last_name from optional to nullable so these fields are always present and use null instead of undefined. Addresses Linear issue #646.

  • Migration
    • Check for null (not undefined) on Contact.first_name and last_name.
    • Include firstName and lastName in UpdateContactOptions; pass null when not updating them.

lucasfcosta and others added 30 commits October 21, 2025 14:48
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vitor Capretz <vitor@resend.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…d#651)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Miranda <gabrielmfern@outlook.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Carolina de Moraes Josephik <32900257+CarolinaMoraes@users.noreply.github.com>
Co-authored-by: Carolina de Moraes Josephik <carolina.moraesjosephik@gmail.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Lucas da Costa <lucas@lucasfcosta.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vitor Capretz <vitor@resend.com>
Co-authored-by: Gabriel Miranda <gabrielmfern@outlook.com>
Co-authored-by: Vitor Capretz <capretzvitor@gmail.com>
Co-authored-by: Cassio Zen <cassiozen@gmail.com>
Co-authored-by: Bu Kinoshita <6929565+bukinoshita@users.noreply.github.com>
Co-authored-by: Lucas da Costa <lucas@lucasfcosta.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vitor Capretz <vitor@resend.com>
Co-authored-by: Gabriel Miranda <gabrielmfern@outlook.com>
Co-authored-by: Ty Mick <5317080+TyMick@users.noreply.github.com>
Co-authored-by: Isabella Aquino <isabella@resend.com>
Co-authored-by: Alexandre Cisneiros <Cisneiros@users.noreply.github.com>
Co-authored-by: Carolina de Moraes Josephik <32900257+CarolinaMoraes@users.noreply.github.com>
Co-authored-by: Carolina de Moraes Josephik <carolina.moraesjosephik@gmail.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Vitor Capretz <capretzvitor@gmail.com>
Co-authored-by: Cassio Zen <cassiozen@gmail.com>
Co-authored-by: Bu Kinoshita <6929565+bukinoshita@users.noreply.github.com>
Co-authored-by: Zeno Rocha <zno.rocha@gmail.com>
@max-programming max-programming requested a review from a team as a code owner October 22, 2025 14:24
@max-programming max-programming changed the title Make Contact TypeScript interfaces **nullable** rather than optional Make Contact TypeScript interfaces nullable rather than optional Oct 22, 2025
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Oct 22, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/resend-node/resend@706

commit: 9dd1001

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@gabrielmfern
Copy link
Copy Markdown
Member

closing in favor of #757

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.

TypeScript interfaces missing null for contact name fields

10 participants