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

You can also simply parse with a type guard in typescript.

Or do something more advanced like implement Decoders/Encoders.



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

Search: