ste-promise-events

Add the power of Events to your projects. They are styled after .Net using a sender and arguments. Handlers can be promises.

Usage no npm install needed!

<script type="module">
  import stePromiseEvents from 'https://cdn.skypack.dev/ste-promise-events';
</script>

README

Strongly Typed Events - Promise Events

Add events that are modeled after .Net with a sender and argument to your project. If you use typescript, you can leverage the support for generics and get strongly typed code. Handlers can be promises.

Need a different type of event? Check out the others.

Build Status npm version License: MIT

Check the documentation or the examples for more information.

Need more info? Check the repo.

Example?

It is hard to come up with sensible examples for promise based handlers, but check the GitHub page for a general overview.

Maintenance

This project is maintained by Kees C. Bakker.