UNPKG

unemail

Version:

A modern TypeScript email library with zero dependencies, supporting multiple providers including AWS SES, Resend, MailCrab, and HTTP APIs

28 lines (24 loc) 727 B
import { EmailOptions, HttpEmailConfig } from 'unemail/types'; import { ProviderFactory } from './base.mjs'; /** * HTTP-specific email options */ interface HttpEmailOptions extends EmailOptions { /** * Additional custom parameters to include in the HTTP request */ customParams?: Record<string, any>; /** * Override the endpoint for this specific email */ endpointOverride?: string; /** * Override the HTTP method for this specific email */ methodOverride?: 'GET' | 'POST' | 'PUT'; } /** * HTTP Email Provider for sending emails via HTTP API */ declare const httpProvider: ProviderFactory<HttpEmailConfig, any, HttpEmailOptions>; export { httpProvider as default };