This class extends the standard EventEmitter with TypeScript typing for giveaway events,
providing type safety and IntelliSense support when listening to or emitting events.
Example
constemitter = newGiveawayEventEmitter();
// Type-safe event listening emitter.on('giveawayStarted', (giveaway) => { // giveaway parameter is automatically typed as GiveawayData console.log(`Started: ${giveaway.prize}`); });
Typed event emitter for giveaway-related events.
This class extends the standard EventEmitter with TypeScript typing for giveaway events, providing type safety and IntelliSense support when listening to or emitting events.
Example