Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'd still be able to execute the code as JS. Your library that uses type reflection wouldn't work anymore but that's true of all these solutions.


No, it's not. I can take a library that uses zod, strip the annotations, and it will execute perfectly anywhere I want to run it.


That's because Zod doesn't use type annotations as input. We're talking about wanting to use type annotations as input so that we don't have to make our code as ugly as Zod makes it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: