@types/hbs
TypeScript icon, indicating that this package has built-in type declarations

4.0.4 • Public • Published

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.

index.d.ts

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/hbs

    Weekly Downloads

    51,238

    Version

    4.0.4

    License

    MIT

    Unpacked Size

    3.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • types