Skip to main content

EmailEventHandlerWithAsyncData

EmailEventHandlerWithAsyncData

Identical to the EmailEventHandler but with a data property added to the event based on the result of the .loadData() function.

Signature
class EmailEventHandlerWithAsyncData<Data, T extends string = string, InputEvent extends EventWithContext = EventWithContext, Event extends EventWithAsyncData<InputEvent, Data> = EventWithAsyncData<InputEvent, Data>> extends EmailEventHandler<T, Event> {
constructor(_loadDataFn: LoadDataFn<InputEvent, Data>, listener: EmailEventListener<T>, event: Type<InputEvent>)
}

constructor

method
(_loadDataFn: LoadDataFn<InputEvent, Data>, listener: EmailEventListener<T>, event: Type<InputEvent>) => EmailEventHandlerWithAsyncData