Add the helpers property to the Handlebars module

This commit is contained in:
Anthony Guo 2015-09-09 16:41:38 -07:00
parent c340b3634c
commit f6d84e170d
2 changed files with 3 additions and 0 deletions

View File

@ -80,3 +80,5 @@ Handlebars.registerHelper('fullName', (person: typeof context.author) => {
});
var escapedExpression = Handlebars.Utils.escapeExpression('<script>alert(\'xss\');</script>');
Handlebars.helpers !== undefined;

View File

@ -18,6 +18,7 @@ declare module Handlebars {
export var Utils: typeof hbs.Utils;
export var logger: Logger;
export var templates: HandlebarsTemplates;
export var helpers: any;
export module AST {
export var helpers: hbs.AST.helpers;