Skip to content

Commit d7c6d6e

Browse files
authored
fix: Remove optionality from required types (#401)
1 parent b543bd0 commit d7c6d6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/emails/interfaces/create-email-options.interface.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ interface EmailRenderOptions {
99
*
1010
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
1111
*/
12-
react?: React.ReactElement | React.ReactNode | null;
12+
react: React.ReactNode;
1313
/**
1414
* The HTML version of the message.
1515
*
1616
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
1717
*/
18-
html?: string;
18+
html: string;
1919
/**
2020
* The plain text version of the message.
2121
*
2222
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
2323
*/
24-
text?: string;
24+
text: string;
2525
}
2626

27-
interface CreateEmailBaseOptions extends EmailRenderOptions {
27+
interface CreateEmailBaseOptions {
2828
/**
2929
* Filename and content of attachments (max 40mb per email)
3030
*

0 commit comments

Comments
 (0)