first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
19
packages/mail/types.ts
Normal file
19
packages/mail/types.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import type { Locale } from "@repo/i18n";
|
||||
|
||||
export interface SendEmailParams {
|
||||
to: string;
|
||||
subject: string;
|
||||
text: string;
|
||||
html?: string;
|
||||
}
|
||||
|
||||
export type SendEmailHandler = (params: SendEmailParams) => Promise<void>;
|
||||
|
||||
export interface MailProvider {
|
||||
send: SendEmailHandler;
|
||||
}
|
||||
|
||||
export type BaseMailProps = {
|
||||
locale: Locale;
|
||||
translations: any;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue