refactor: deno lint fix slow-type-missing-explicit-return-type
This commit is contained in:
parent
b437863f8b
commit
54ceae3e71
|
@ -1,8 +1,11 @@
|
||||||
|
import type SendmailTransport from 'npm:@types/nodemailer'
|
||||||
import type { Mail } from '../types.ts'
|
import type { Mail } from '../types.ts'
|
||||||
import { renderTemplate } from './template.tsx'
|
import { renderTemplate } from './template.tsx'
|
||||||
import { transporter } from './transporter.ts'
|
import { transporter } from './transporter.ts'
|
||||||
|
|
||||||
export async function send(mail: Mail) {
|
export async function send(
|
||||||
|
mail: Mail,
|
||||||
|
): Promise<SendmailTransport.SentMessageInfo> {
|
||||||
const { html, text } = await renderTemplate(mail.body)
|
const { html, text } = await renderTemplate(mail.body)
|
||||||
|
|
||||||
return (await transporter()).sendMail({
|
return (await transporter()).sendMail({
|
||||||
|
|
Loading…
Reference in a new issue