EmailEventListener

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 public type: T;
  constructor(type: T)
  on(event: Type<Event>) => EmailEventHandler<T, Event>;
}

Members

type

public property
type:
T

constructor

method
type:
(type: T) => EmailEventListener

on

method
type:
(event: Type<Event>) => EmailEventHandler<T, Event>
Defines the event to listen for.