UNPKG

@visulima/email

Version:

A comprehensive email library with multi-provider support, crypto utilities, and template engines

10 lines (9 loc) 512 B
import type { EmailHeaders } from "../types.d.ts"; /** * Converts EmailHeaders (Record&lt;string, string> or ImmutableHeaders) to Record&lt;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&lt;string, string> representation of the headers. */ declare const headersToRecord: (headers: EmailHeaders) => Record<string, string>; export default headersToRecord;