4 ms·
(completely serious) I think soon TS is going to need a "type debugger" where you can set breakpoints and step through tsc as it propagates your type info thro
by umvi 2y ago
(completely serious) I think soon TS is going to need a "type debugger" where you can set breakpoints and step through tsc as it propagates your type info through generics and conditionals and such
Otherwise it's just nightmarish to try to debug ultra complex types
- sherburt3 2y agoLearning the more advanced features of typescript is one of the worst things that's happened to my productivity. I keep wasting hours making a hyper specific type when in reality `{ [K: string]: string }` probably would have worked just fine.
- jmeyer2k 2y agoTo debug, I just do `type asdf = Whatever<Generics, You, Want>` then mouse over `asdf`.
- bubblyworld 2y agoThis would be fantastic, I agree - specifically the interaction between generic constraints and conditionals has bitten me so many times.