Hacker News new | ask | show | jobs
by Rapzid 914 days ago
Awesome. What do you think about this long standing Typescript issue? https://stackoverflow.com/questions/57683303/how-can-i-see-t...

It's been my experience introducing and pushing Typescript at multiple companies that people get lost, frustrated, and then push back because they can't untangle and make sense of type hierarchies in order to satisfy the compiler...

Even I get tired of control clicking up and down hierarchies trying to build a mental model of exactly what's expected.

It's amazing to me that this issue has been ignored so long by the TypeScript team.

1 comments

As far as I know you get something like that with Zod.

The inferred static types don't have names anymore, they just include the resulting types.