Update express-handlebars.d.ts

This commit is contained in:
Sam Saint-Pettersen
2015-10-22 17:52:44 +01:00
parent d0b76a76e6
commit 0bf4af5b28
+5 -5
View File
@@ -3,7 +3,7 @@
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Promise {} // This should be replaced with a Promise type definition import.
/// <reference path="../es6-promise/es6-promise.d.ts" />
interface PartialTemplateOptions {
cache?: boolean;
@@ -33,10 +33,10 @@ interface Exphbs {
compiled: Object;
precompiled: Object;
create(options?: ExphbsOptions): Exphbs;
getPartials(options?: PartialTemplateOptions): Promise;
getTemplate(filePath: string, options?: PartialTemplateOptions): Promise;
getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise;
render(filePath: string, context: Object, options?: RenderOptions): Promise;
getPartials(options?: PartialTemplateOptions): Promise<Object>;
getTemplate(filePath: string, options?: PartialTemplateOptions): Promise<Function>;
getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise<Object>;
render(filePath: string, context: Object, options?: RenderOptions): Promise<string>;
renderView(viewPath: string, optionsOrCallback?: any, callback?: Function): void;
}