smarthbs/dist/index.d.ts

16 lines
623 B
TypeScript
Raw Normal View History

2017-02-26 01:08:25 +00:00
/// <reference types="handlebars" />
2017-02-19 03:12:17 +00:00
import 'typings-global';
export declare type TTemplateStringType = 'filePath' | 'code';
2017-02-26 01:08:25 +00:00
/**
* registers a directory of partials to make them available within handlebars compilation
*/
2017-02-19 03:12:17 +00:00
export declare let registerPartialDir: (dirPathArg: string) => void;
2017-02-26 01:08:25 +00:00
/**
* compiles a directory and outputs it
*/
export declare let compileDirectory: (originDirPathArg: string, destinationDirPathArg: string, dataFileNameArg: string) => Promise<void>;
/**
* get a template for a file on disk
*/
export declare let getTemplateForFile: (filePathArg: string) => Promise<HandlebarsTemplateDelegate>;