subscribableevent
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    SubscribableEvent

    GitHub license npm version Build Status David David

    A simple strongly-typed pub/sub/fire eventing system

    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.

    Install

    npm i subscribableevent

    DownloadsWeekly Downloads

    3,763

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar
    • avatar