refactor: deno lint fix slow-type-missing-explicit-return-type

This commit is contained in:
Julien Oculi 2024-07-15 14:25:38 +02:00
parent b437863f8b
commit 54ceae3e71

View file

@ -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({