Coding task · JavaScript and TypeScript course · Module 10: TypeScript in Practice

Exercise: Typed Event Emitter

Practical exercise with a type-safe event system

Task

Implement a generic TypedEventEmitter with the on, emit, and off methods.