Incoming event type.
Outgoing translated event type.
Event translation function. Accepts an outgoing event sender function as first parameter, and incoming event as the rest of them.
Rest
...event: TOutEventRest
...event: TInEventA mapping function of incoming event keeper to another one.
Creates an event processor that translates events incoming from OnEvent sender with fallback.
The translated events expected to be sent by the given translate
function.
The returned mapper does the same as the one created by translateOn one, but returns an AfterEvent
keeper instead of OnEvent sender. This can not be always done without a fallback
, as not every
transformation results to valid EventKeeper. E.g. when some events filtered out.
Incoming event type.
Outgoing translated event type.
Event translation function. Accepts an outgoing event sender function as first parameter, and incoming event as the rest of them.
Rest
...event: TOutEventRest
...event: TInEventA function creating outgoing event fallback.
A mapping function of incoming event keeper to another one.
Generated using TypeDoc
Creates an event processor that translates events incoming from AfterEvent keeper.
The translated events expected to be sent by the given
translate
function.The returned mapper does the same as the one created by translateOn one, but returns an AfterEvent keeper instead of OnEvent sender. This can not be always done without a
fallback
, as not every transformation results to valid EventKeeper. E.g. when some events filtered out.