mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
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:
+1
-1
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user