diff options
Diffstat (limited to 'src/ts/types')
| -rw-r--r-- | src/ts/types/contact.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ts/types/contact.ts b/src/ts/types/contact.ts new file mode 100644 index 0000000..c0f23e0 --- /dev/null +++ b/src/ts/types/contact.ts @@ -0,0 +1,19 @@ +export type SentEmail = { + clientMutationId: string; + message: string; + origin: string; + replyTo: string; + sent: boolean; + to: string; +}; + +export type SentEmailResponse = { + sendEmail: SentEmail; +}; + +export type SendMailReturn = ( + subject: string, + body: string, + replyTo: string, + mutationId: string +) => Promise<SentEmail>; |
