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
2.3.1 • Public • PublishedPackage Sidebar
Install
npm i krevent
Repository
Weekly Downloads
1
Version
2.3.1
License
ISC
Unpacked Size
6 kB
Total Files
6