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

There multiple libraries like this and gajus is well aware of them. They are libraries instead of being part of the language.


Yes, runtypes is not the only option. But the point is that TypeScript’s type system is powerful enough to implement runtime type checking. I’m not sure what the benefit would be to adding the concept as a first-class citizen in the language.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: