We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi love this library.
Are there any plans for TypeScript definitions?
The text was updated successfully, but these errors were encountered:
Just used ChatGPT to generate one, seems perfect for me:
declare module 'emlformat' { interface Headers { [key: string]: string | string[]; } interface Part { headers: Headers; body: string | Part[] | Body[]; } interface Body { boundary: string; part: Part; } interface ParsedEml { headers: Headers; body: string | Body[]; } interface Attachment { id?: string; name?: string; contentType?: string; inline?: boolean; data: string | Buffer; } interface EmailAddress { name?: string; email: string; } interface ReadEml { date?: Date; subject?: string; from?: EmailAddress | EmailAddress[]; to?: EmailAddress | EmailAddress[]; cc?: EmailAddress | EmailAddress[]; headers: Headers; text?: string; html?: string; attachments?: Attachment[]; } interface BuildOptions { headersOnly?: boolean; } interface UnpackOptions { parsedJsonFile?: string; readJsonFile?: string; simulate?: boolean; } function parse(eml: string, options: BuildOptions, callback: (error: Error | null, data: ParsedEml) => void): void; function read(eml: string | ParsedEml, options: BuildOptions, callback: (error: Error | null, data: ReadEml) => void): void; function build(data: ReadEml, options: BuildOptions, callback: (error: Error | null, eml: string) => void): void; function unpack(eml: string | ParsedEml, directory: string, options: UnpackOptions, callback: (error: Error | null, result: { files: string[] }) => void): void; }
Sorry, something went wrong.
No branches or pull requests
Hi love this library.
Are there any plans for TypeScript definitions?
The text was updated successfully, but these errors were encountered: