diff --git a/types/express-handlebars/index.d.ts b/types/express-handlebars/index.d.ts index 50bf82cc7f..50eb804939 100644 --- a/types/express-handlebars/index.d.ts +++ b/types/express-handlebars/index.d.ts @@ -40,7 +40,8 @@ interface Exphbs { getTemplate(filePath: string, options?: PartialTemplateOptions): Promise; getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise; render(filePath: string, context: Object, options?: RenderOptions): Promise; - renderView(viewPath: string, optionsOrCallback: ExphbsCallback | any, callback?: ExphbsCallback): void; + renderView(viewPath: string, callback: ExphbsCallback): void; + renderView(viewPath: string, options: any, callback: ExphbsCallback): void; } interface ExpressHandlebars {