Better Giveaways - v1.0.0-beta.2
    Preparing search index...

    Class GiveawayEventEmitter

    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.

    const emitter = new GiveawayEventEmitter();

    // Type-safe event listening
    emitter.on('giveawayStarted', (giveaway) => {
    // giveaway parameter is automatically typed as GiveawayData
    console.log(`Started: ${giveaway.prize}`);
    });

    Hierarchy

    Index

    Constructors

    Constructors