borisyankov/DefinitelyTyped — pull request #522 by anchann (2013-05-07 01:58:02+00:00)
Title: Nodemailer: type definitions for the SMPT-specific options

Greetings!

I didn't polish anything about these definitions to completion, but did get some examples from the nodemailer readme properly typechecking. Let me know if that's not good enough for a PR, and I'll try to go through and do a more complete sweep.

Thanks!

-a

===

As documented here:
https://github.com/andris9/nodemailer#setting-up-smtp

Added examples from the above source as tests.

The original definition of NodemailerTransportOptions looks questionable
with its AWS-specific fields, but leaving it alone for now since I'm
new to nodemailer.

Once typescript 0.9 is rolled out with its string parameter matcher,
that should be used for specifying the type of options of the second
parameter when the first one has value "SMTP".