From f6d84e170d02e995bd7568af6c56d45c09eddad8 Mon Sep 17 00:00:00 2001 From: Anthony Guo Date: Wed, 9 Sep 2015 16:41:38 -0700 Subject: [PATCH] Add the helpers property to the Handlebars module --- handlebars/handlebars-tests.ts | 2 ++ handlebars/handlebars.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/handlebars/handlebars-tests.ts b/handlebars/handlebars-tests.ts index 7ca58ff02a..264d70103c 100644 --- a/handlebars/handlebars-tests.ts +++ b/handlebars/handlebars-tests.ts @@ -80,3 +80,5 @@ Handlebars.registerHelper('fullName', (person: typeof context.author) => { }); var escapedExpression = Handlebars.Utils.escapeExpression(''); + +Handlebars.helpers !== undefined; diff --git a/handlebars/handlebars.d.ts b/handlebars/handlebars.d.ts index 6526857240..9a0aa510ac 100644 --- a/handlebars/handlebars.d.ts +++ b/handlebars/handlebars.d.ts @@ -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;