A typed publish/subscribe hook used to assemble SDK events.
Multiple callbacks can be registered. When trigger is called, each callback receives the same params and may return:
trigger
params
Result
combine
SKIPPED
DISCARDED
The input passed to every registered callback.
The type of the assembled output value.
Registers a callback and returns a handle to unregister it.
Invokes all registered callbacks with params and deep-merges their results. Returns DISCARDED if any callback discards the event, or undefined if no callback returns a result.
undefined
A typed publish/subscribe hook used to assemble SDK events.
Multiple callbacks can be registered. When
triggeris called, each callback receives the sameparamsand may return:Resultvalue — merged with the other callbacks' results viacombine.SKIPPED— this callback contributes nothing; processing continues.DISCARDED— the entire event is dropped; no further callbacks are invoked.