mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
handlebars: added partials/decorators fields and registerDecorator/unregisterDecorator methods (#14895)
This commit is contained in:
parent
5720c5ef6b
commit
603a182210
7
handlebars/index.d.ts
vendored
7
handlebars/index.d.ts
vendored
@ -10,6 +10,9 @@ declare namespace Handlebars {
|
||||
export function registerPartial(name: string, str: any): void;
|
||||
export function unregisterHelper(name: string): void;
|
||||
export function unregisterPartial(name: string): void;
|
||||
export function registerDecorator(name: string, fn: Function): void;
|
||||
export function unregisterDecorator(name: string): void;
|
||||
|
||||
export function K(): void;
|
||||
export function createFrame(object: any): any;
|
||||
export function Exception(message: string): void;
|
||||
@ -26,7 +29,9 @@ declare namespace Handlebars {
|
||||
export var Utils: typeof hbs.Utils;
|
||||
export var logger: Logger;
|
||||
export var templates: HandlebarsTemplates;
|
||||
export var helpers: any;
|
||||
export var helpers: { [name: string]: Function };
|
||||
export var partials: { [name: string]: any };
|
||||
export var decorators: { [name: string]: Function };
|
||||
|
||||
export function registerDecorator(name: string, fn: Function): void;
|
||||
export function registerDecorator(obj: {[name: string] : Function}): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user