@visulima/email
Version:
A comprehensive email library with multi-provider support, crypto utilities, and template engines
10 lines (9 loc) • 512 B
TypeScript
import type { EmailHeaders } from "../types.d.ts";
/**
* Converts EmailHeaders (Record<string, string> or ImmutableHeaders) to Record<string, string>.
* This allows us to work with headers uniformly regardless of their input type.
* @param headers The headers to convert (Record or ImmutableHeaders).
* @returns A plain object Record<string, string> representation of the headers.
*/
declare const headersToRecord: (headers: EmailHeaders) => Record<string, string>;
export default headersToRecord;