ste-promise-simple-events

Add the power of Simple Events to your projects. Every event has an argument with its data. Every handler can be a promise.

Usage no npm install needed!

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

README

Strongly Typed Events - Promise Simple Event

Simple events are a type of event that will provide an argument with data when fired. 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.