@visulima/email
Version:
A comprehensive email library with multi-provider support, crypto utilities, and template engines
20 lines (19 loc) • 604 B
TypeScript
import type { BaseConfig, EmailOptions } from "../../types.d.ts";
/**
* Round Robin configuration
*/
export interface RoundRobinConfig extends BaseConfig {
/**
* Array of provider instances or provider factories to use for round-robin distribution
* Can be Provider instances or ProviderFactory functions
*/
mailers: unknown[];
/**
* Time in milliseconds to wait before retrying with next provider if current is unavailable (default: 60)
*/
retryAfter?: number;
}
/**
* Round Robin-specific email options
*/
export type RoundRobinEmailOptions = EmailOptions;