Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/nodemailer-express-handlebars
Advanced tools
TypeScript definitions for nodemailer-express-handlebars
npm install --save @types/nodemailer-express-handlebars
This package contains type definitions for nodemailer-express-handlebars (https://github.com/yads/nodemailer-express-handlebars).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer-express-handlebars.
// 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;
These definitions were written by Gabriel de Oliveira.
FAQs
TypeScript definitions for nodemailer-express-handlebars
We found that @types/nodemailer-express-handlebars demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.