Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/nodemailer-express-handlebars

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/nodemailer-express-handlebars - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

nodemailer-express-handlebars/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc