From 04a052005dfca2df3748cbbfe25c9a266152376d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20H=C3=A9monic?= Date: Thu, 20 Nov 2014 13:25:38 +0100 Subject: [PATCH] Updated underscore.d.ts Added settings parameters to template signature Test example: var template = _.template("My name is { name }", { interpolate: /\{(.+?)\}/g }); template({ name: "Nicolas" }); --- underscore/underscore.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index b6336074d6..511eb3e71c 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -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; /**