mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Update 'swig'
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
0
swig/swig.d.ts → swig/index.d.ts
vendored
0
swig/swig.d.ts → swig/index.d.ts
vendored
@@ -1,6 +1,4 @@
|
||||
/// <reference path="swig.d.ts" />
|
||||
|
||||
import swig = require('swig');
|
||||
import swig = require('./');
|
||||
|
||||
var swigObj: swig.Swig;
|
||||
var value: any;
|
||||
|
||||
Reference in New Issue
Block a user