@tsdotnet/event-factory

A strongly typed protected event creator/publisher/signaler for use with TypeScript and JavaScript.

Usage no npm install needed!

<script type="module">
  import tsdotnetEventFactory from 'https://cdn.skypack.dev/@tsdotnet/event-factory';
</script>

README

alt text" title="tsdotnet"> tsdotnet / event-factory

GitHub license 100% code coverage npm-publish npm version

A strongly typed protected event creator/publisher/signaler for use with TypeScript and JavaScript.

Docs

tsdotnet.github.io/event-factory

Purpose

  • Provides an API that separates event listening/subscribing from dispatching/publishing.
  • Simplifies adding events to any object.
  • Allows for complex auto-event-disposal patterns to ensure minimal reference retention.