mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add the helpers property to the Handlebars module
This commit is contained in:
parent
c340b3634c
commit
f6d84e170d
@ -80,3 +80,5 @@ Handlebars.registerHelper('fullName', (person: typeof context.author) => {
|
||||
});
|
||||
|
||||
var escapedExpression = Handlebars.Utils.escapeExpression('<script>alert(\'xss\');</script>');
|
||||
|
||||
Handlebars.helpers !== undefined;
|
||||
|
||||
1
handlebars/handlebars.d.ts
vendored
1
handlebars/handlebars.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user