3 ms·
Awesome. What do you think about this long standing Typescript issue? https://stackoverflow.com/questions/57683303/how-can-i-see-the-full-expanded-contract-of-a
by Rapzid 3y ago
Awesome. What do you think about this long standing Typescript issue? https://stackoverflow.com/questions/57683303/how-can-i-see-the-full-expanded-contract-of-a-typescript-type 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.
- k__ 3y agoAs 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.