From 54ceae3e71e6ac962ec9eb8c4c211b5449d1034f Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Jul 2024 14:25:38 +0200 Subject: [PATCH] refactor: deno lint fix `slow-type-missing-explicit-return-type` --- src/send.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/send.ts b/src/send.ts index 316215b..fbb829a 100644 --- a/src/send.ts +++ b/src/send.ts @@ -1,8 +1,11 @@ +import type SendmailTransport from 'npm:@types/nodemailer' import type { Mail } from '../types.ts' import { renderTemplate } from './template.tsx' import { transporter } from './transporter.ts' -export async function send(mail: Mail) { +export async function send( + mail: Mail, +): Promise { const { html, text } = await renderTemplate(mail.body) return (await transporter()).sendMail({