Update 'swig'

This commit is contained in:
Ryan Cavanaugh
2016-04-27 10:25:01 -07:00
parent 37d850eb65
commit 5e8a00bf66
3 changed files with 4 additions and 8 deletions

View File

@@ -3,10 +3,7 @@
// Definitions by: Adam Babcock <https://github.com/mrhen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../swig/swig.d.ts" />
import swig = require('swig');
import swig = require('../swig');
interface SwigRender<T> {
(file: string, context: T, callback: (err: any, html: string, text: string) => any): any;
@@ -17,4 +14,5 @@ interface SwigEmailTemplatesOptions extends swig.SwigOptions {
}
declare function init<T>(options: SwigEmailTemplatesOptions, cb: (err: any, render: SwigRender<T>) => any): any;
export = init
export = init;

View File

View File

@@ -1,6 +1,4 @@
/// <reference path="swig.d.ts" />
import swig = require('swig');
import swig = require('./');
var swigObj: swig.Swig;
var value: any;