057d7ac2a6
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> |
||
---|---|---|
spec | ||
src | ||
tsconfig | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
SubscribableEvent
A simple strongly-typed pub/sub/fire eventing system
Installation
npm install --save subscribableevent
Basic Example
const event = new SubscribableEvent<(payload: string) => void>();
event.subscribe((payload: string) => {
console.log(payload);
});
event.fire('Payload Params');
Contributing
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.