better-auth/packages/mail/types.ts
 Илья Шалонин 8538ab969a first
2025-10-29 13:43:43 +05:00

19 lines
349 B
TypeScript

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;
};