refactor(chore): flatten Mail
type
This commit is contained in:
parent
c221370973
commit
e97e1503cb
12
types.ts
12
types.ts
|
@ -1,16 +1,14 @@
|
||||||
import type { JSX } from 'preact'
|
import type { JSX } from 'preact'
|
||||||
import { Contact } from './src/contact.ts'
|
import { Contact } from './src/contact.ts'
|
||||||
|
|
||||||
export type Options = {
|
|
||||||
cc: Contact[]
|
|
||||||
cci: Contact[]
|
|
||||||
attachments: string[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Mail = {
|
export type Mail = {
|
||||||
from: Contact
|
from: Contact
|
||||||
to: Contact[]
|
to: Contact[]
|
||||||
subject: string
|
subject: string
|
||||||
body: JSX.Element
|
body: JSX.Element
|
||||||
options: Options
|
options: {
|
||||||
|
cc: Contact[]
|
||||||
|
cci: Contact[]
|
||||||
|
attachments: string[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue