@types/nodemailer-express-handlebars
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -18,3 +18,3 @@ // Type definitions for nodemailer-express-handlebars 4.0 | ||
interface TemplateOptions { | ||
template?: string; | ||
template?: string | undefined; | ||
context?: any; | ||
@@ -34,3 +34,3 @@ } | ||
viewPath: string; | ||
extName?: string; | ||
extName?: string | undefined; | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "@types/nodemailer-express-handlebars", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "TypeScript definitions for nodemailer-express-handlebars", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer-express-handlebars", | ||
"license": "MIT", | ||
@@ -25,4 +26,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "c231865958c0cc9638433f620ae0acaeb2627440368a047ac2e79f427baecfa7", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "abb9b3cb4847ce6f61c30aee4d1492ef2c4c4a5be073df45b83bc03b9039c31c", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,48 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer-express-handlebars. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer-express-handlebars/index.d.ts) | ||
````ts | ||
// Type definitions for nodemailer-express-handlebars 4.0 | ||
// Project: https://github.com/yads/nodemailer-express-handlebars | ||
// Definitions by: Gabriel de Oliveira <https://github.com/th3rius> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import { create } from "express-handlebars"; | ||
import { SentMessageInfo, Transporter } from "nodemailer"; | ||
import * as Mail from "nodemailer/lib/mailer"; | ||
declare function hbs(options: hbs.NodemailerExpressHandlebarsOptions): Mail.PluginFunction; | ||
declare namespace hbs { | ||
type Exphbs = ReturnType<typeof create>; | ||
type ExphbsOptions = Parameters<typeof create>[0]; | ||
interface TemplateOptions { | ||
template?: string | undefined; | ||
context?: any; | ||
} | ||
type HbsTransporter = Transporter & { | ||
sendMail( | ||
mailOptions: Mail.Options & TemplateOptions, | ||
callback: (err: Error | null, info: SentMessageInfo) => void, | ||
): void; | ||
sendMail(mailOptions: Mail.Options & TemplateOptions): Promise<SentMessageInfo>; | ||
}; | ||
interface NodemailerExpressHandlebarsOptions { | ||
viewEngine: Exphbs | ExphbsOptions; | ||
viewPath: string; | ||
extName?: string | undefined; | ||
} | ||
export { TemplateOptions, HbsTransporter, NodemailerExpressHandlebarsOptions }; | ||
} | ||
export = hbs; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 12 Apr 2021 21:31:20 GMT | ||
* Last updated: Thu, 08 Jul 2021 18:51:35 GMT | ||
* Dependencies: [@types/express-handlebars](https://npmjs.com/package/@types/express-handlebars), [@types/nodemailer](https://npmjs.com/package/@types/nodemailer) | ||
@@ -14,0 +57,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5574
0
60