Skip to content

Commit 42aea6d

Browse files
committed
Merge pull request DefinitelyTyped#5763 from jacqt/handlebars-helpers
Add the helpers property to the Handlebars module
2 parents 19dd088 + f6d84e1 commit 42aea6d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

handlebars/handlebars-tests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ Handlebars.registerHelper('fullName', (person: typeof context.author) => {
8080
});
8181

8282
var escapedExpression = Handlebars.Utils.escapeExpression('<script>alert(\'xss\');</script>');
83+
84+
Handlebars.helpers !== undefined;

handlebars/handlebars.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ declare module Handlebars {
1818
export var Utils: typeof hbs.Utils;
1919
export var logger: Logger;
2020
export var templates: HandlebarsTemplates;
21+
export var helpers: any;
2122

2223
export module AST {
2324
export var helpers: hbs.AST.helpers;

0 commit comments

Comments
 (0)