I am currently working on converting a codebase that utilizes nodemailer along with the nodemailer-html-to-text plugin to TypeScript.
While nodemailer has @types definitions available, the same is not true for nodemailer-html-to-text
.
How can I go about creating custom type definitions for this module?
I attempted to create a file named
@types/nodemailer-html-to-text.d.ts
in my project:
declare module 'nodemailer-html-to-text' {
}
My goal is to have this file export a function definition htmlToText
of type Mail.PluginFunction, but I am unsure of how to proceed…