konker.dev
codeberg
github github
LinkedIn
Home
Home Projects @konker.dev/tiny-event-fp Reference
  • Overview
  • Examples
  • Reference
    • Type Aliases
      • TinyEventDispatcher
      • TinyEventListener()
    • Functions
      • addListener()
      • addStarListener()
      • createTinyEventDispatcher()
      • notify()
      • removeAllListeners()
      • removeListener()
      • removeStarListener()

Reference

Type Aliases

Type aliasDescription
TinyEventDispatcherA record value which holds the listeners that will react to events.
TinyEventListenerSignature of an event listener function.

Functions

FunctionDescription
addListenerAdd the given listener for the given event to the given TinyEventDispatcher.
addStarListenerAdd a wildcard listener for all possible events to the given TinyEventDispatcher.
createTinyEventDispatcherCreate an empty TinyEventDispatcher value.
notifyNotify all relevant listeners of the given event with the given event data.
removeAllListenersRemove all listeners from the given TinyEventDispatcher.
removeListenerRemove the given listener for the given event from the given TinyEventDispatcher.
removeStarListenerRemove the given wildcard listener from the given TinyEventDispatcher.

previous Examples
next TinyEventDispatcher
  • Overview
  • Type Aliases
  • Functions

Brought to you from Helsinki, Finland | Built with Astro | Styled with Tailwind | Powered by Site-O-Matic

codeberg
github github
LinkedIn