From 722dcc1a29d0b8aacc17722051d4e2cb83b124aa Mon Sep 17 00:00:00 2001 From: Chris Gedrim Date: Mon, 8 Apr 2019 23:55:25 +0100 Subject: [PATCH] Overload instead of pointless union --- types/express-handlebars/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {