3 ms·
Well now Claude will add the types for me, so I don't need to use escape hatches
by frollogaston 5mo ago
Well now Claude will add the types for me, so I don't need to use escape hatches
- galaxyLogic 5mo agoI haven't tried that but so are you saying I could basically code in JavaScript and then ask Claude to turn it into TypeScript?
- frollogaston 5mo agoYeah, I've done it with JS, but more often with Python.
- dns_snek 5mo agoAs long as you're fine with the types being semantic gibberish because all agents I've used take the lowest effort approach to make the error go away. You probably have the same logical type duplicated in 3+ different places (at least partially), including inline casts using type literals like "maybeCat as { meow(): void }"
- frollogaston 5mo agoSo far I've seen it actually do the types well when I tell it to add types. But even if it didn't, I wouldn't care, it's just to check a box.