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

Yes use zod or equivalent.

I am quite surprised people here doesn't know how to validate data in runtime. The author completely mixing Typescript with runtime behavior.

a?.b?.c?.() or var ?? something have well documented use cases and it's not what the author is thinking.



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

Search: