From 01310d2cfcae48dc655cf39055b59ac7d5ed5832 Mon Sep 17 00:00:00 2001 From: ayZagen Date: Mon, 12 Aug 2019 23:42:06 +0300 Subject: [PATCH] [@types/email-templates] fix: render option is not function (#37396) * fix: render option is not function * chore: updated version * chore: lint --- types/email-templates/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/email-templates/index.d.ts b/types/email-templates/index.d.ts index 6d21a49ccd..9ceba37388 100644 --- a/types/email-templates/index.d.ts +++ b/types/email-templates/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-email-templates 3.5 +// Type definitions for node-email-templates 6.0 // Project: https://github.com/niftylettuce/email-templates // Definitions by: Cyril Schumacher // Matus Gura @@ -33,7 +33,7 @@ interface EmailConfig { /** * Pass a custom render function if necessary */ - render?: { view: string, locals: any }; + render?: (view: string, locals: any) => Promise; /** * force text-only rendering of template (disregards template folder) */