mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 12:33:17 +08:00
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:
2
underscore/underscore.d.ts
vendored
2
underscore/underscore.d.ts
vendored
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user