Simply takes a payload and passes it to all the listeners.
While dispatching:
Improving safety:
Specifying trap will catch any errors and pass them along if trap is a function. A payload is used instead of arguments for easy typing.
Optional
Generated using TypeDoc
Simply takes a payload and passes it to all the listeners.
While dispatching:
Improving safety:
Specifying trap will catch any errors and pass them along if trap is a function. A payload is used instead of arguments for easy typing.