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');
krevent![This package contains built-in TypeScript declarations TypeScript icon, indicating that this package has built-in type declarations](https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg)
2.3.1 • Public • Published /krevent/
Package Sidebar
Install
npm i krevent
Repository
Weekly Downloads
2
Version
2.3.1
License
ISC
Unpacked Size
6 kB
Total Files
6