News for hackers. Stuff that matters.
Re:All I Want for Christmas Is These Seven TypeScript Improv... by esrch on Sunday December 25, 2022 @11:31PM (#34134608)
You might be aware of it already, but I just wanted to mention that the Zod library could potentially solve some of your needs.
Re:All I Want for Christmas Is These Seven TypeScript Improv... by chucklenorris on Monday December 26, 2022 @04:07PM (#34141890)
Yes, that and the openapi plugin is what i use right now. Before i used to load the ts compiler at runtime and tell it to parse my file and got the types from there. But it was a stupid overengineered brittle solution.