ste-promise-events
Version:
Add the power of Events to your projects. They are styled after .Net using a sender and arguments. Handlers can be promises.
18 lines (12 loc) • 1.46 kB
Markdown
# 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 <a href="https://www.npmjs.com/package/strongly-typed-events">the others</a>.
[](https://travis-ci.org/KeesCBakker/Strongly-Typed-Events-for-TypeScript)
[](https://badge.fury.io/js/ste-signals)
[](https://opensource.org/licenses/MIT)
Check the <a href="https://github.com/KeesCBakker/Strongly-Typed-Events-for-TypeScript/tree/master/documentation">documentation</a> or the <a href="https://github.com/KeesCBakker/Strongly-Typed-Events-for-TypeScript/tree/master/examples">examples</a> for more information.
Need more info? Check the <a href="https://github.com/KeesCBakker/Strongly-Typed-Events-for-TypeScript">repo</a>.
## Example?
It is hard to come up with sensible examples for promise based handlers, but check the <a href="https://github.com/KeesCBakker/Strongly-Typed-Events-for-TypeScript">GitHub page</a> for a general overview.
## Maintenance
This project is maintained by <a href="https://keestalkstech.com/">Kees C. Bakker</a>.