Skip to content

fix: resolve mailgun email template type errors#99

Merged
Marve10s merged 1 commit intomainfrom
fix/mailgun-email-template-types
Mar 17, 2026
Merged

fix: resolve mailgun email template type errors#99
Marve10s merged 1 commit intomainfrom
fix/mailgun-email-template-types

Conversation

@Marve10s
Copy link
Owner

Summary

  • Use MailgunMessageData type instead of Record<string, unknown> for message data objects passed to mg.messages.create()
  • Fix validateEmail to use correct mailgun.js v10 API fields (result.result instead of result.is_valid, remove non-existent did_you_mean)
  • Include text field in initial message data to satisfy AtLeastOneKeyPresent type constraint

Test plan

  • bun test --update-snapshots apps/cli/test/template-snapshots.test.ts — all 34 pass
  • Smoke test with mailgun email combo should no longer fail typecheck

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-fullstack-web Ignored Ignored Preview Mar 17, 2026 5:11pm

@Marve10s Marve10s force-pushed the fix/mailgun-email-template-types branch from 44d5bd0 to 68ddf49 Compare March 17, 2026 16:56
- Use MailgunMessageData type instead of Record<string, unknown> for
  message data objects
- Fix validateEmail to use correct v10 API fields (result.result
  instead of result.is_valid, remove non-existent did_you_mean)
- Include text field in initial message data to satisfy
  AtLeastOneKeyPresent constraint

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Marve10s Marve10s force-pushed the fix/mailgun-email-template-types branch from 68ddf49 to 993de23 Compare March 17, 2026 17:11
@Marve10s Marve10s merged commit 0ca47ab into main Mar 17, 2026
7 checks passed
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.

1 participant