UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

20 lines (18 loc) 392 B
/** * Email provider interface. * * All methods are asynchronous and return promises. */ export abstract class EmailProvider { /** * Send an email. * * @return Promise that resolves when the email is sent. */ public abstract send(options: EmailSendOptions): Promise<void>; } export type EmailSendOptions = { to: string | string[]; subject: string; body: string; };