Added shared mailer package to remove circular dependencies between packages. (#63)

This commit is contained in:
Giancarlo Buomprisco
2024-09-04 03:34:48 +08:00
committed by GitHub
parent d18f810c6e
commit 4c7a3354b9
21 changed files with 256 additions and 38 deletions

View File

@@ -0,0 +1,7 @@
import { z } from 'zod';
import { MailerSchema } from './schema/mailer.schema';
export abstract class Mailer<Res = unknown> {
abstract sendEmail(data: z.infer<typeof MailerSchema>): Promise<Res>;
}