upvote
As 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 }"

reply
So 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.
reply
I haven't tried that but so are you saying I could basically code in JavaScript and then ask Claude to turn it into TypeScript?
reply
Yeah, I've done it with JS, but more often with Python.
reply