mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Correction: renderView takes optionsOrCallback...
... as a mandatory argument (removed ?).
This commit is contained in:
2
express-handlebars/express-handlebars.d.ts
vendored
2
express-handlebars/express-handlebars.d.ts
vendored
@@ -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