Updated underscore.d.ts

Added settings parameters to template signature
Test example:
var template = _.template("My name is { name }", { interpolate: /\{(.+?)\}/g });
template({ name: "Nicolas" });
This commit is contained in:
Nicolas Hémonic
2014-11-20 13:25:38 +01:00
parent a17e409c11
commit 04a052005d

View File

@@ -1472,7 +1472,7 @@ interface UnderscoreStatic {
* @param settings Settings to use while compiling.
* @return Returns the compiled Underscore HTML template.
**/
template(templateString: string): (...data: any[]) => string;
template(templateString: string, settings?: _.TemplateSettings): (...data: any[]) => string;
template(templateString: string, data: any, settings?: _.TemplateSettings): string;
/**