From e97e1503cbbfe23a3a4f042cf0b6792707113140 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Fri, 29 Mar 2024 16:35:20 +0100 Subject: [PATCH] refactor(chore): flatten `Mail` type --- types.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/types.ts b/types.ts index 89dad7a..e595357 100644 --- a/types.ts +++ b/types.ts @@ -1,16 +1,14 @@ import type { JSX } from 'preact' import { Contact } from './src/contact.ts' -export type Options = { - cc: Contact[] - cci: Contact[] - attachments: string[] -} - export type Mail = { from: Contact to: Contact[] subject: string body: JSX.Element - options: Options + options: { + cc: Contact[] + cci: Contact[] + attachments: string[] + } }