mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +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 parent
d2ea21d435
commit
6c849e0a8c
1 file changed
+1
-1
+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