Correction.

Correction: renderView takes optionsOrCallback as a mandatory argument (removed ?).
See: https://github.com/ericf/express-handlebars#renderviewviewpath-optionscallback-callback
This commit is contained in:
Sam Saint-Pettersen
2015-10-28 17:54:20 +00:00
parent d2ea21d435
commit 6c849e0a8c
+1 -1
View File
@@ -37,7 +37,7 @@ interface Exphbs {
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: () => string): void;
renderView(viewPath: string, optionsOrCallback: any, callback?: () => string): void;
}
declare module "express-handlebars" {