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

createTinyEventDispatcher()

function createTinyEventDispatcher<T, A>(): P.Effect.Effect<TinyEventDispatcher<T, A>, never>;

Create an empty TinyEventDispatcher value.

Type parameters

• T

The possible event types that can be received

• A

The type of the event data which can be received

Returns

P.Effect.Effect<TinyEventDispatcher<T, A>, never>

  • A new TinyEventDispatcher value wrapped in a Effect

Source

index.ts:41


previous addStarListener()
next notify()
  • Overview
  • Type parameters
  • Returns
  • Source

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

codeberg
github github
LinkedIn