Skip to content

Commit

Permalink
fix: Remove optionality from required types (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcapretz authored Jul 19, 2024
1 parent b543bd0 commit d7c6d6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/emails/interfaces/create-email-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ interface EmailRenderOptions {
*
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
*/
react?: React.ReactElement | React.ReactNode | null;
react: React.ReactNode;
/**
* The HTML version of the message.
*
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
*/
html?: string;
html: string;
/**
* The plain text version of the message.
*
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
*/
text?: string;
text: string;
}

interface CreateEmailBaseOptions extends EmailRenderOptions {
interface CreateEmailBaseOptions {
/**
* Filename and content of attachments (max 40mb per email)
*
Expand Down

0 comments on commit d7c6d6e

Please sign in to comment.