Const emailSchema
emailSchema: ZodObject<{ bodyHtml: ZodUnion<[ZodString, ZodUndefined]>; bodyText: ZodUnion<[ZodString, ZodUndefined]>; cc: ZodArray<ZodObject<{ address: ZodString; name: ZodString }, { strict: true }, {}>>; date: ZodUnion<[ZodString, ZodUndefined]>; from: ZodArray<ZodObject<{ address: ZodString; name: ZodString }, { strict: true }, {}>>; messageId: ZodUnion<[ZodString, ZodUndefined]>; replyTo: ZodArray<ZodObject<{ address: ZodString; name: ZodString }, { strict: true }, {}>>; source: ZodUnion<[ZodString, ZodUndefined]>; subject: ZodUnion<[ZodString, ZodUndefined]>; to: ZodArray<ZodObject<{ address: ZodString; name: ZodString }, { strict: true }, {}>> }, { strict: true }, {}> = z.object({messageId: optionalString,to: addressListSchema,replyTo: addressListSchema,from: addressListSchema,cc: addressListSchema,subject: optionalString,bodyText: optionalString,bodyHtml: optionalString,date: optionalString,source: optionalString,})
Asserts that the given value is compatible with EmailData, otherwise throws ane Error.
{Error}