diff --git a/handlebars/handlebars-tests.ts b/handlebars/handlebars-tests.ts index 937f93191..7ca58ff02 100644 --- a/handlebars/handlebars-tests.ts +++ b/handlebars/handlebars-tests.ts @@ -78,3 +78,5 @@ Handlebars.registerHelper('list', (items: any, fn: (item: any) => string) => { Handlebars.registerHelper('fullName', (person: typeof context.author) => { return person.firstName + ' ' + person.lastName; }); + +var escapedExpression = Handlebars.Utils.escapeExpression(''); diff --git a/handlebars/handlebars.d.ts b/handlebars/handlebars.d.ts index ea1a1a11c..076381571 100644 --- a/handlebars/handlebars.d.ts +++ b/handlebars/handlebars.d.ts @@ -53,8 +53,8 @@ declare module hbs { static toString(): string; } - class Utils { - static escapeExpression(str: string): string; + module Utils { + function escapeExpression(str: string): string; } }