Installation
npm install --save @types/hbs
Summary
This package contains type definitions for hbs (https://github.com/pillarjs/hbs).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hbs.
import handlebars = require("handlebars");
type handlebarsModule = typeof handlebars;
interface hbsModule {
readonly handlebars: handlebarsModule;
localsAsTemplateData(app: any): void;
registerHelper(helperName: string, helperFunction: (...args: any[]) => any): void;
registerPartial(partialName: string, partialValue: string): void;
registerPartials(directoryName: string, callback?: () => void): void;
__express(filename: string, options: any, cb: (...args: any[]) => any): any;
}
interface hbsModuleWithCreate extends hbsModule {
create(handlebars?: handlebarsModule): hbsModule;
}
declare var baseModule: hbsModuleWithCreate;
export = baseModule;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: handlebars
Credits
These definitions were written by David Muller.