A 32-second TypeScript check, and the one NoInfer that fixed it
A typed middleware made each Telegraf on() call cost seconds of type checking. The trace pointed to inference. One NoInfer around the whole callback type took five calls from 32.0 s to 0.6 s.
Read the post