Introducing Zod, and design tradeoffs of typescript libraries that let you specify and validate types: https://vriad.com/blog/zod/
miniblog.
Related Posts
I'm still figuring out where Copilot fits in my workflow, and I find it works really well *when I know exactly what code I want*.
When I have e.g. two lines in mind, I can see if it will write them (saving me the typing), and it's trivial to validate correctness.