mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[@types/email-templates] fix: render option is not function (#37396)
* fix: render option is not function * chore: updated version * chore: lint
This commit is contained in:
committed by
Pranav Senthilnathan
parent
5e7f5c9d41
commit
01310d2cfc
Vendored
+2
-2
@@ -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 <https://github.com/cyrilschumacher>
|
||||
// Matus Gura <https://github.com/gurisko>
|
||||
@@ -33,7 +33,7 @@ interface EmailConfig {
|
||||
/**
|
||||
* Pass a custom render function if necessary
|
||||
*/
|
||||
render?: { view: string, locals: any };
|
||||
render?: (view: string, locals: any) => Promise<any>;
|
||||
/**
|
||||
* force text-only rendering of template (disregards template folder)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user