Skip to main content

EmailEventListener

EmailEventListener

An EmailEventListener is used to listen for events and set up a EmailEventHandler which defines how an email will be generated from this event.

Signature
class EmailEventListener<T extends string> {
public type: T;
constructor(type: T)
on(event: Type<Event>) => EmailEventHandler<T, Event>;
}

type

property
T

constructor

method
(type: T) => EmailEventListener

on

method
(event: Type<Event>) => EmailEventHandler<T, Event>

Defines the event to listen for.