Skip to content

Type-safe webhooks #1

@franky47

Description

@franky47

I'm planning to use OhMySMTP in a Fastify app, for which I've made the fastify-ohmysmtp package, and next on my roadmap is to add a route and handlers for webhooks.

While I could list the event types and define the payload type within the plugin, I feel like those type definitions would be better located here in the Node.js API.

I've done a similar job for the Stripe webhooks here (though they had additional complexity that would be unneeded here if all webhooks have the same payload type), if that's something you're interested in, I can open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions