mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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:
parent
5e7f5c9d41
commit
01310d2cfc
4
types/email-templates/index.d.ts
vendored
4
types/email-templates/index.d.ts
vendored
@ -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)
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user