From 0bf4af5b283944fd2d63d1bac0f617f9921a6d01 Mon Sep 17 00:00:00 2001 From: Sam Saint-Pettersen Date: Thu, 22 Oct 2015 17:52:44 +0100 Subject: [PATCH] Update express-handlebars.d.ts --- express-handlebars/express-handlebars.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/express-handlebars/express-handlebars.d.ts b/express-handlebars/express-handlebars.d.ts index 6e11635b5..d3177c114 100644 --- a/express-handlebars/express-handlebars.d.ts +++ b/express-handlebars/express-handlebars.d.ts @@ -3,7 +3,7 @@ // Definitions by: Sam Saint-Pettersen // Definitions: https://github.com/borisyankov/DefinitelyTyped -interface Promise {} // This should be replaced with a Promise type definition import. +/// 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; + getTemplate(filePath: string, options?: PartialTemplateOptions): Promise; + getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise; + render(filePath: string, context: Object, options?: RenderOptions): Promise; renderView(viewPath: string, optionsOrCallback?: any, callback?: Function): void; }