@webda/core
Version:
Expose API with Lambda
37 lines (36 loc) • 854 B
TypeScript
import { AbstractMailer } from "./mailer.js";
/**
* Fake Service to help debug mail expedition
* @WebdaModda
*/
export default class DebugMailer extends AbstractMailer {
sent: any[];
constructor(webda: any, name: any, params: any);
/**
* Fakely send a message saving it to memory to test later on
*
* @param options
* @param callback
*/
send(options: any, _callback?: any): Promise<void>;
/**
* Just send a new Error exception
*/
error(): void;
/**
* Check if the email template exists
*
* @param name
* @returns
*/
hasNotification(_name: string): Promise<boolean>;
/**
* Just send a new Error exception as async
*/
errorAsync(): Promise<void>;
/**
* Empty async method
*/
async(): Promise<void>;
}
export { DebugMailer };