Update underscore.d.ts

Template return values not correctly typed - if data is passed it will return a string (no partial templating in underscore)
This commit is contained in:
Nickolas Westman
2014-08-05 11:43:05 -07:00
parent eee9894b92
commit 1ba83dded2
+3 -2
View File
@@ -1472,8 +1472,9 @@ interface UnderscoreStatic {
* @param settings Settings to use while compiling.
* @return Returns the compiled Underscore HTML template.
**/
template(templateString: string, data?: any, settings?: _.TemplateSettings): (...data: any[]) => string;
template(templateString: string): (...data: any[]) => string;
template(templateString: string, data: any, settings?: _.TemplateSettings): string;
/**
* By default, Underscore uses ERB-style template delimiters, change the
* following template settings to use alternative delimiters.