7.0.3 • Published 6 months ago
@types/swig-email-templates v7.0.3
Installation
npm install --save @types/swig-email-templates
Summary
This package contains type definitions for swig-email-templates (https://github.com/andrewrk/swig-email-templates).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swig-email-templates.
index.d.ts
// Type definitions for swig-email-templates 5.0
// Project: https://github.com/andrewrk/swig-email-templates
// Definitions by: Adam Babcock <https://github.com/mrhen>
// Satana Charuwichitratana <https://github.com/micksatana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
/// <reference types="jquery" />
import swig = require('swig');
type SwigRender<T> = (file: string, context: T, callback: (err: any, html: string, text: string) => any) => any;
interface SwigEmailTemplatesOptions extends swig.SwigOptions {
root?: string | undefined;
juice?: any;
rewriteUrl?: ((href: string) => string) | undefined;
rewrite?: (($: JQueryStatic) => void) | undefined;
}
declare class EmailTemplates {
constructor(options?: SwigEmailTemplatesOptions);
generateText(templatePath: string, context: any, html: string, cb: (error: any, text: string | null) => void): void;
generateSubject(templatePath: string, context: any, cb: (error: any, text: string | null) => void): void;
rewriteUrls($: JQueryStatic, rewrite: (href: string) => void): void;
render(templatePath: string, context: any, cb: (error: any, inlinedHTML?: string, text?: string, subject?: string) => void): void;
}
export = EmailTemplates;
Additional Details
- Last updated: Fri, 02 Jul 2021 22:33:19 GMT
- Dependencies: @types/swig, @types/jquery
- Global values: none
Credits
These definitions were written by Adam Babcock, and Satana Charuwichitratana.
7.0.3
6 months ago
7.0.2
7 months ago
7.0.1
8 months ago
7.0.0
2 years ago
5.0.1
3 years ago
5.0.0
6 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.15-alpha
8 years ago
0.0.14-alpha
8 years ago