// Type definitions for swig-email-templates // Project: https://github.com/andrewrk/swig-email-templates // Definitions by: Adam Babcock // Definitions: https://github.com/borisyankov/DefinitelyTyped /// declare module "swig-email-templates" { import swig = require('swig'); interface SwigRender { (file:string, context:T, callback:(err:any, html:string, text:string)=>any):any; } interface SwigEmailTemplatesOptions extends swig.SwigOptions { root?: string; } function init(options:SwigEmailTemplatesOptions, cb:(err:any, render:SwigRender)=>any):any; export = init }