From f42cf708c0a671281da81655174113646a893a7a Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Fri, 29 Mar 2024 16:37:35 +0100 Subject: [PATCH] refactor: apply `deno lint --fix` --- cli/send.ts | 2 +- src/send.ts | 2 +- src/template.tsx | 4 ++-- types.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/send.ts b/cli/send.ts index 1838825..07a0050 100644 --- a/cli/send.ts +++ b/cli/send.ts @@ -1,7 +1,7 @@ import { Command } from '@cliffy/command/mod.ts' import { Contact } from '../src/contact.ts' import { send } from '../src/send.ts' -import { Mail } from '../types.ts' +import type { Mail } from '../types.ts' export const cmd = new Command() .name('send') diff --git a/src/send.ts b/src/send.ts index 4e5e0e0..f8dba5f 100644 --- a/src/send.ts +++ b/src/send.ts @@ -1,4 +1,4 @@ -import { Mail } from '../types.ts' +import type { Mail } from '../types.ts' import { transporter } from './transporter.ts' export function send(mail: Mail) { diff --git a/src/template.tsx b/src/template.tsx index 5afd3dc..6cbade6 100644 --- a/src/template.tsx +++ b/src/template.tsx @@ -1,8 +1,8 @@ -import React from 'preact/compat' //for jsx-email +import type React from 'preact/compat' //for jsx-email import { render } from 'jsx-email' // @deno-types="npm:turndown" import Turndown from 'turndown' -import { JSX } from 'preact' +import type { JSX } from 'preact' const htmlToMd = new Turndown({ headingStyle: 'atx', diff --git a/types.ts b/types.ts index e595357..263dae1 100644 --- a/types.ts +++ b/types.ts @@ -1,5 +1,5 @@ import type { JSX } from 'preact' -import { Contact } from './src/contact.ts' +import type { Contact } from './src/contact.ts' export type Mail = { from: Contact