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) */