Typed events
−57%check time with TypeScript 7 after the fix
Yes. Inferring the event name from the generic parameter cut check time by about 40% with TypeScript 6 and by about 65% with TypeScript 7, with the same type safety. Narrowing include to src also stopped TypeScript from reading a generated file the app never imports.
Read the experiment