We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53ac91 commit 945f94bCopy full SHA for 945f94b
1 file changed
apps/sim/lib/messaging/email/providers/ses.ts
@@ -17,8 +17,12 @@ export function createSesProvider(): MailProvider | null {
17
if (!region) return null
18
19
const sesClient = new SESv2Client({ region })
20
+ // `@types/nodemailer` bundles its own copy of `@aws-sdk/client-sesv2`, so the
21
+ // SendEmailCommand and SESv2Client we import are structurally identical at
22
+ // runtime but TS sees them as a different declarations. Cast through the
23
+ // nodemailer SES shape to bridge the two type identities.
24
const sesOptions: SESTransport.Options = {
- SES: { sesClient, SendEmailCommand },
25
+ SES: { sesClient, SendEmailCommand } as SESTransport.Options['SES'],
26
}
27
const transporter = nodemailer.createTransport(sesOptions)
28
0 commit comments