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

2.3.1 • Public • Published
import Event from 'krevent';

const evs = new Event<(v1:number, v2:string)=>void>();

// attach event listener
evs.on((v1, v2)=>{ console.log(v1, v2); });

// fire event
evs.fire(1234, 'string');

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i krevent

    Weekly Downloads

    3

    Version

    2.3.1

    License

    ISC

    Unpacked Size

    6 kB

    Total Files

    6

    Last publish

    Collaborators

    • karikera